DEV Community

loading...

Discussion on: When You Should Use JavaScript Maps over Objects

Collapse
voiedev profile image
Charles Allen

Should new Map(["key", "value"]); be new Map([["key", "value"]]); (with 2 sets of square brackets)?