How to clone an array or object in Javascript
May 6, 2023 · 4 min read · Primitive data type:For Primitive data types, we do not need to care about copying because when you create a copy, it will be a real copy Like in the above case, we created a variable a, made a copy of it by just writing b=aEven if you make changes ...
Join discussion
