Glossary term

What is shallow copy? Meaning for developers

A copy of only the outer array or object, so inner arrays are shared. structuredClone makes a deep copy.

Learn it properly · DSALesson 59: The Interview PlaybookAsk, plan, code, test: the 45 minutes, step by step.

All DSA terms

Related terms

← All glossary terms, A to Z