DEV Community

Discussion on: Future Javascript: Records and Tuples

Collapse
 
amymc profile image
amy mccarthy • Edited

Object.freeze isn't deeply immutable. From the MDN docs:

"The result of calling Object.freeze(object) only applies to the immediate properties of object itself and will prevent future property addition, removal or value re-assignment operations only on object. If the value of those properties are objects themselves, those objects are not frozen and may be the target of property addition, removal or value re-assignment operations."