JSFiddle - React, Tailwind, and code Playground
by Viet27th
JavaScript
let a = {0: {b:[1]}};
let c = JSON.parse(JSON.stringify(a));
c[0].b.push(2);
console.log(a);
console.log(c)
by Viet27th
let a = {0: {b:[1]}};
let c = JSON.parse(JSON.stringify(a));
c[0].b.push(2);
console.log(a);
console.log(c)