Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

deep freeze, works with Map and Set
https://github.com/christophehurpeau/deep-freeze-es6

Last synced: about 2 months ago
JSON representation

deep freeze, works with Map and Set

Awesome Lists containing this project

README

        


deep-freeze-es6


deep freeze, works with Map and Set







## Quick example

```js
import { deepFreeze } from 'deep-freeze-es6';

const obj = deepFreeze({
map: new Map([
[1, 1],
[2, 2],
]),
});
obj.map.clear(); // Error: map is read-only
```