@iml/deep-freeze

2.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @iml/deep-freeze

Weekly Downloads

2

Version

2.0.2

License

MIT

Last publish

Collaborators

  • iml-team
  • johnsonw
  • manager-for-lustre
  • jgrund