DEV Community

Discussion on: 4 Static Object Methods I Wish I Knew About Sooner

Collapse
 
tilakmaddy_68 profile image
Tilak Madichetti

BONUS:

Object.freeze(myObj);

If you do this the properties of myObj cannot be changed later on :)