let Flat6 = arr => arr.reduce((a, b) => a.concat(Array.isArray(b) ? Flat6(b) : b), []);
let Flat6 = arr => arr.reduce((a, b) => a.concat(Array.isArray(b) ? Flat6(b) : b), []);
let arr = [1, [2,3], [3, 4, [4,5,6, [7, 7 ,8 ]]]]
Flat6(arr)
let Flat6 = arr => arr.reduce((a, b) => a.concat(Array.isArray(b) ? Flat6(b) : b), []);
let Flat6 = arr => arr.reduce((a, b) => a.concat(Array.isArray(b) ? Flat6(b) : b), []);
let arr = [1, [2,3], [3, 4, [4,5,6, [7, 7 ,8 ]]]]
Flat6(arr)