DEV Community

Discussion on: Do you know spread operator in Javascript object is mutable?

Collapse
 
pentacular profile image
pentacular

I think that perhaps you gave the article the wrong title. :)

The claim here is that "the spread operator does a shallow copy", but that is quite different to claiming that "the spread operator is mutable".

I'm not sure what it would mean for an operator to be mutable.