NonStrictMap Auto serialize and deserialize keys in ES6 Map. const map = new NonStrictMap([ [ { x: 5, y: 6 }, someValue ],]); map.get({ x: 5, y: 6 }) === someValue;