@fine-js/read-only-map
v0.0.1
Published
ECMAScript's Map, but it throws if you try to change it.
Downloads
3
Readme
Read-only Map
Map you can only read from:
ReadOnlyMap extends Map
and throws if you call
#set()
,
#clear()
or
#delete()
.
npm install @fine-js/read-only-map
It's fine for what I use it for.
For immutable data structures, check out Facebook's Immutable.JS or other packages on npm.