I've been experimenting with ES6 Map in io.js and realized that I can't do the following:
var map = new Map()
map.set( {key:"value"}, "some string");
map.get( {key:"value"} ); // undefined. I want "some string"
This is because {key:"value"} === {key:"value"} is false.
I need to be able to use an object as a key but not require the ACTUAL object to lookup the value like how java HashMap uses hashcode and equals. Is this possible?