Something strange is happening to me. I have a Map() filled with objects, but when I try to get an object using the map.get() method, I always receive 'undefined'.
The attached image provides a clear explanation of the issue. Why is X turning out to be undefined?
https://i.sstatic.net/89JzI.png
Thank you in advance for your help.