DEV Community

loading...

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 Author

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