The object to freeze
Optionaloptions: { skip?: WeakSet<object> }Optional configuration
Optionalskip?: WeakSet<object>Externally owned WeakSet of objects to skip during freezing; not mutated by this function (caller responsible for lifecycle)
The frozen object with Secure<T> type
Deep-freeze an Array | Object to make it immutable (with recursion guard).
The object to freeze
Optionaloptions: { skip?: WeakSet<object> }Optional configuration
Optionalskip?: WeakSet<object>Externally owned WeakSet of objects to skip during freezing; not mutated by this function (caller responsible for lifecycle)
Optionalseen: WeakSet<object>The frozen object with Secure<T> type
Deep-freeze an Array | Object to make it immutable (with recursion guard).