Deep Copy vs Shallow Copy in JavaScript
Shallow Copy
A new object is created that has an exact copy of the values in the original object. If the original object points to another object, a separate copy of that object is not created, rather a reference to that object is passed.
const a = {...
·2 min read·ahtrahdis7.hashnode.devUpdated Read the article
Faheem Khan
Good article!