Must say before all that my basic knowledge comes from java and not js. I have the following map:
const myMap = new Map();
myMap.set([1,2], 'Test');
myMap.get([1,2]// return undefined
can't understand why the last line of code doesn't return 'Test'. in java the key is being checked using equals method, how does js checks for equality? I'm not looking for the solution that will return 'Test', only the explantion why it is not return 'Test' for this specific code?