Recursively seals 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};deepSeal(a)// => object and all sub-objects are sealed.
Object to recursively seal.
Generated using TypeDoc
Recursively seals an objects and all own non-function sub-objects.
Note that the input object is being mutated.
Since
12.0.0
See
Example