DEV Community

Discussion on: Maps in JavaScript

Collapse
 
emnudge profile image
EmNudge

You wrote

Calling add() more than once with the same key won't add multiple key-value pairs.

I believe you may have meant set()

Collapse
 
attacomsian profile image
Atta

Yeah, it should be set() method for maps :) I updated the post.