1 points · by jacopotarantino · 11y ago · 4 comments
To prevent changes to an object's properties, you could use `Object.freeze()` instead [1]. NB, this is shallow, so a child object of a frozen object can still have its properties changed.
[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...