An ES6 map that supports complex keys with shallow equals
$ yarn add piratemap
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' !!!
It has exactly the same API as the builtin Map class.