const array = [1, 2, [3, 4, [5, 6]]];
const result = array.flat(2).map(n => n * 2);
console.log(result);
Post #1461
6.71K
CHALLENGE
- 👍 3
- ❤ 2