An ES6 map that supports complex keys with shallow equals
$ yarn add piratemap
Why would I use this?
Because you want to use an object or array as a key in a Map.
But unless you keep a reference to the original key, you will not be able to retrieve a value.
const map =mapmap // undefined !!!
But with PirateMap, you can do this!
const map =mapmap // 'here be treasure' !!!
How do I use it?
It has exactly the same API as the builtin Map class.