Contact: aviboots(AT)netvision.net.il
39,944 questions
51,885 answers
573 users
let arr = [ 1, 7, [[3]], [[[2]]], [[[[[[[98]]]]]]] ]; arr = arr.flat(2); console.log(arr); /* run: [1, 7, 3, [2], [[[[[98]]]]]] */