DEV Community

Discussion on: 5 Uses for the Spread Operator

Collapse
 
laurieontech profile image
Laurie

Definitely. My understanding is that this only applies because the example above is multidimensional. So the first level is copied, but the deeper levels are referenced. If it's one-dimensional it is a deep copy.