Again a confusing Issue:
Here I copied the array into another variable and I expect not to change the original array when I change something in another one but both arrays change Why?
const groups = [[1, 2, 3, 4 ,5], [2,3]];
const sets = [...groups];
sets[1].push(9000); // I just push a number into sets NOT groups
console.log(sets);
console.log(groups);
This only happens if we have an array of arrays!
What I'm missing and How to fix this?