Deep Copy vs Shallow Copy in JavaScript
While programming it is very important to not mutate(change) the original data that we receive. Otherwise it would have unintended consequences. The code might become harder to debug and test while giving undesired side-effects.
What is Mutation ?
Le...
yogupta.hashnode.dev4 min read