Shallow copy and deep copy are terms thrown around in Javascript that can be confusing if you have never heard them before. A shallow copy of an array or object is one where they both have the same reference in memory.
Table of contents
What is a shallow copy in JavaScript?So how do you make deep copies in Javascript?Conclusion5 Comments
Sort: