Understanding Nested Arrays and Flattening in JavaScript
When working with arrays, we usually deal with simple lists.
[1, 2, 3]
But sometimes, arrays can contain other arrays inside them.
[1, [2, 3], [4, [5, 6]]]
These are called nested arrays.
At first,
understanding-javascript-methods.hashnode.dev3 min read