HashMap that supports using one or more keys of any type*
Hash keys are generated using esco/multikey-hash
$ npm install superhash
var SuperHash = require('superhash');
var hashMap = new SuperHash();
var data = 'value';
Single key:
hashMap.set(5, data);
hashMap.get("5"); // returns undefined
hashMap.get(5); // returns 'value'
hashMap.delete(5); // returns true
Multiple keys:
var obj = { name: 'foo' };
hashMap.set(1, obj, true, data);
hashMap.get(1, obj, "true"); // returns undefined
hashMap.get(1, obj, true); // returns 'value'
hashMap.delete(1, obj, true); // returns true
Any primitive or mutable object can be used as a key.