isDeepFrozen
Checks if an object is deeply frozen.
- Use recursion.
- Use
Object.isFrozen()
on the given object. - Use
Object.keys()
,Array.prototype.every()
to check that all keys are either deeply frozen objects or non-object values.
Checks if an object is deeply frozen.
Object.isFrozen()
on the given object.Object.keys()
, Array.prototype.every()
to check that all keys are either deeply frozen objects or non-object values.