Function deepFreeze
-
Type Parameters
- T extends object
Type of data.
Parameters
- data: T
An object or array.
Optionaloptions: { skipKeys?: ReadonlySet<PropertyKey> }Options.
-
OptionalskipKeys?: ReadonlySet<PropertyKey>A readonly set of property keys whose values are excluded from traversal. Numeric keys are normalized to their JavaScript string-key representation. A matching key is skipped regardless of where it appears in the object graph.
-
Returns T
The frozen object.
- T extends object
Freezes all traversed object and array values.