DEV Community

loading...

Discussion on: JavaScript Map is getting upsert!

Collapse
drmandible profile image
DrMandible

Is this different than assigning new values with spread operator?

Collapse
laurieontech profile image
Laurie Author

The spread operator is not valid inside Map's set function so far as I am aware.