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.