Array Flatten in JavaScript
What nested arrays are?
If element(s) inside array is array, it creates nested arrays.
Example -
const nestedArray = [[1,2,3],[4,5,6],[7,8,9]]
It can be seen as matrix too.
Why flattening arrays is u
skullcoder.hashnode.dev2 min read