How do you flattening multi dimensional arrays

Posted by Jennifer | Updated on

Flattening bi-dimensional arrays is trivial with Spread operator.

But you can make it work with multi-dimensional arrays by recursive calls,

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers