Say I want to map a pair of values (1,6) that for example to something other value, say a string "something1,6", and another pair of values (2,3) to "something2,3"
I tried doing this:
m = {}
m[{x:1,y:6}] ="something1,6"
m[{x:2,y:3}] = "something2,3"
console.log(m)
but it seems to just gives me {'[object object]':"something2,3"}, so it converted the object that I want to use as key to this "[object object]" string, and this is why when I again use an object as key, it gets converted to the same string and gets updated? If so, how can I do this in Javascript without using a 2d matrix for example to replicate the behavior I want