0.14.0
New features
- deepFreeze(obj: T, createCopy?: boolean): T
- Recursively freezes an object and all its nested objects. Freezing prevents
any modifications to the object's properties. - If
createCopy
istrue
(default isfalse
), a new frozen deep copy of
the object is returned, leaving the original unchanged.
- Recursively freezes an object and all its nested objects. Freezing prevents
- deepSeal(obj: T, createCopy?: boolean): T
- Recursively seals an object and all its nested objects. Sealing prevents new
properties from being added or removed, but existing properties can still be
modified. - If
createCopy
istrue
(default isfalse
), a new sealed deep copy of
the object is returned, leaving the original unchanged.
- Recursively seals an object and all its nested objects. Sealing prevents new
Full Changelog: 0.13.0...0.14.0