Recursively freezes an object and its properties, making them immutable.
This function ensures that not only the object itself is frozen, but all nested objects and arrays are also frozen.
It also makes sure that any changes to the object's properties will result in an error (in strict mode).
Recursively freezes an object and its properties, making them immutable. This function ensures that not only the object itself is frozen, but all nested objects and arrays are also frozen. It also makes sure that any changes to the object's properties will result in an error (in strict mode).