DEV Community

Discussion on: Spread Syntax "Three-dots" Tricks You Can Use Now

Collapse
 
prashanthpprabhu profile image
Prashanth Prabhu

When you are concating 2 arrays also it is a shallow copy. Right?

Collapse
 
girlie_mac profile image
Tomomi Imura 🐱

Yes, a good point! It doesn't recurse into nested arrays so it returns a new array with shallow copies.