README
PMap
Install with npm i --save @shaman-apprentice/pack-mule
.
Goals of this library
- Academic fun of the implementation journey
- A static strong typed interface via TypeScript
- Store key-value pairs not by key object's reference (what native
Map
does), but by a user provided key function - Access better than O(n), what a naive implementation with two lists would offer
API
⚠️ Note for babel
In case you use babel for further transpiling you might need to add regenerator-runtime and transform-class-properties in addition to @babel/preset-env.