DEV Community

loading...

Discussion on: When You Should Use JavaScript Maps over Objects

Collapse
shnakecase profile image
shnake-case

Great article! I think it is also worth noting that you can't JSON.stringify a Map object, it produces a string with an empty object literal "{}". So if you need to serialize such a structure, you'd have to do it manually.