Flattening an array in JavaScript

If you have an mutidementional array(or nested array) you want to flattern, you can do it this way.

So now you can run it

Leave a Reply