JavaScript Deep Copy vs. Shallow Copy

An image is worth a thousand words, a thousand and one when it is sample code. (Yes, poor joke!)

Simple assignment is pass-by-reference (shallow copy), Cloning […] is pass-by-value (deep copy)

1 Comment

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.