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 = {...
ahtrahdis7.hashnode.dev2 min read
Faheem Khan
Web Developer, content creator.
Good article!