DEV Community

Discussion on: 5 Uses for the Spread Operator

Collapse
 
seanmclem profile image
Seanmclem

It does a deep copy for an array only, but does a shallow copy when used on an object. Is that right? Doesn't mention it in your article

Thread Thread
 
laurieontech profile image
Laurie

That is correct. And yes, it's something that I likely should have mentioned!