Cloning an Object in Javascript: Shallow Copy vs. Deep Copy
Have you tried to clone an object in Javascript and the output wasn't what you expected? In this article, I will explain the concepts behind cloning to ensure that you always use the right option. Shallow copy Vs Deep copy There are two ways to clone...

