Deeply freezes an object or array such that all child objects/arrays are also frozen.
Note that this will also freeze the input itself as well.
If the intent is to create a newly frozen object with a different reference in memory, pass your object through deepCopy first before passing to deepFreeze.
Deeply freezes an object or array such that all child objects/arrays are also frozen.
Note that this will also freeze the input itself as well. If the intent is to create a newly frozen object with a different reference in memory, pass your object through deepCopy first before passing to deepFreeze.