Glossary: JavaScript Beyond the Basics
Shallow copy
Also written: shallow
A copy of only the outer object or array; anything nested inside is shared with the original. Spread makes shallow copies.
Glossary: JavaScript Beyond the Basics
Also written: shallow
A copy of only the outer object or array; anything nested inside is shared with the original. Spread makes shallow copies.