Array Flatten in JavaScript
I still remember the first time I saw a nested array.
Something like this:
const arr = [1,[2,3],[4,5]];
And my first reaction was…
Wait.
An array inside an array?
And then another one?
It looked mess
devwithsahil.hashnode.dev5 min read