An open API service indexing awesome lists of open source software.

https://github.com/kareimgazer/deep-freeze-es6

recursively Object.freeze() objects but using ES6 syntax
https://github.com/kareimgazer/deep-freeze-es6

Last synced: 6 months ago
JSON representation

recursively Object.freeze() objects but using ES6 syntax

Awesome Lists containing this project

README

          

# deep-freeze-ES6

recursively `Object.freeze()` objects

[![build status](https://secure.travis-ci.org/substack/deep-freeze.png)](http://travis-ci.org/substack/deep-freeze)

# Examples

see `deepFreeze.test.js`

## deepFreeze(obj)

Calls `Object.freeze(obj)` recursively on all unfrozen properties of `obj` that
are functions or objects.