DEV Community

Cover image for Add Getter Setter to Object
Zevan Rosser
Zevan Rosser

Posted on

Add Getter Setter to Object

A getter/setter method can be added to an Object using Object. defineProperties.

See more stuff like this over @ Snippet Zone

Discussion (0)