Recursively freezes an objects and all own non-function sub-objects.
Note that the input object is being mutated.
12.0.0
const a = {a: {b: 2}, b: [1, {foo: "foo"}], c: 2};deepFreeze(a)// => object and all sub-objects are frozen.
Object to recursively freeze.
Generated using TypeDoc
Recursively freezes an objects and all own non-function sub-objects.
Note that the input object is being mutated.
Since
12.0.0
See
Example