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