DEV Community

Discussion on: Understanding the Spread Operator in JavaScript

Collapse
 
birju112 profile image
Birju Shah

Nice article. Would you mind mentioning that the copy with the spread operator creates a shallow copy of the object and not a deep one.

Collapse
 
marinamosti profile image
Marina Mosti

Hey Birju, you're right. I try to keep these as simple as possible and sometimes overlook some of the more advanced concepts in favor of clarity. Will make a note, thanks