Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/christophehurpeau/deep-freeze-es6
- Owner: christophehurpeau
- Created: 2016-03-11T00:43:02.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-07-30T21:01:12.000Z (about 2 months ago)
- Last Synced: 2024-07-31T05:59:32.922Z (about 2 months ago)
- Language: JavaScript
- Size: 170 MB
- Stars: 9
- Watchers: 3
- Forks: 5
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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
```