How can we store 1-D array as a key in Javascript Map?
I know we can store it by converting key as a string like map.set('[1,2]', 46) and it does get retrieved by map.get('[1,2]'), however without key as string (map.set([1,2], 56)) it does gets stored in map but it cannot be retrieved by using map.get([1,2]).
It is useful for matrix kind of questions. Is there a way to use this in such a way?