What will be your approach

How to convert the [1,2,[3,4],[[[[5],[6]]]], [[7], [8]], 9 ] array as flat array?

output should be [1,2,3,4,5,6,7,8,9]

Comments (0)