Skip to content

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.

Where the book teaches it

Related terms

Deep copyRest / spread