JavaScript Object.freeze()
making objects read-only
Using freeze()
will ensure that an object and its properties become read-only:
However, if a property contains a (nested) object, then that property can still change:
Last updated
making objects read-only
Using freeze()
will ensure that an object and its properties become read-only:
However, if a property contains a (nested) object, then that property can still change:
Last updated