Use similar sets to identify map entries.
import SetMap from 'key-set-map';
const map = new SetMap();
map.set([3, 1, 4, 1, 5, 9], 'foobar');
console.log(map.get([1, 1, 3, 4, 5, 9])); // => "foobar"
$ npm install --save j-/key-set-map
Will output to dist/set-map.js.
$ npm install && npm run build
$ npm install && npm test