He/him, developer, builder of things both tangible and abstract, practitioner of yoga and ukulele... All-around complicated monkey.
https://www.buymeacoffee.com/tobyplaystheuke
This is excellent! I appreciate a good in-depth exploration of how getters and setters can be useful. Another neat advantage to them? When we JSON.stringify() our objects, whether constructors or factories, the functions in them are stripped away. But getters are not treated as functions, but as their returned type.
This is excellent! I appreciate a good in-depth exploration of how getters and setters can be useful. Another neat advantage to them? When we
JSON.stringify()
our objects, whether constructors or factories, the functions in them are stripped away. But getters are not treated as functions, but as their returned type.Yes, thank you for reading