JavaScript Professional — Medium
Key points
- Objects with the same properties are not considered equal in Maps
- The size of the Map is 2 because both `a` and `b` are used as keys
- Attempting to retrieve a value with a new object will not work
Ready to go further?
Related questions
