2.0.2 • Published 7 years ago

@iml/deep-freeze v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

deep-freeze

Build Status

Freezes an Object tree recursively. Does not detect cycles, so use this only on JSON like objects, not on a graph.

Also, this is useful for testing to assert your objects are not being mutated. There are not many situations where you would want this code to create immutable objects in production.