I have this code:
let a = {x: "x"};
let b = {b: "b"};
let versions = [a, b];
let copyOfVersions = Array.from(versions);
let test = ["test"];
copyOfVersions[0].versions = Array.from(test);
console.log(versions[0].versions);
How come that versions
table values have changed too?
Thanks!