6]];
and I need to convert it to this:
const arr = [[1, 2], [3, 4], [5, 7], [6]];
What would be the best way to do this?
arr[3] = [ arr[2][1] ]; arr[2][1] = 7;
Обсуждают сегодня