const arr = [1, [2, 3], [4, [5, 6]]];
const flat = arr.flat(Infinity);
console.log(flat.length);
WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers const arr = [1, [2, 3], [4, [5, 6]]];
const flat = arr.flat(Infinity);
console.log(flat.length);