Cloning an Object in Javascript: Shallow Copy vs. Deep Copy
Feb 23, 2023 · 2 min read · 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...
KBICCKhajappa and 5 more commented
