Object.freeze: Immutable Objects

One of my favorite part of JavaScript has always been mutability of objects.  I loved that MooTools and likewise frameworks could modify native prototypes to enhance them with functionality we knew the language need; in fact, I credit MooTools with pushing the web forward. There are cases, however, where you don’t want an object to […]
The post Object.freeze: Immutable Objects appeared first on David Walsh Blog.

Link: https://davidwalsh.name/object-freeze