Recursively flattens array.
array
The array to flatten.
Returns the new flattened array.
5.4.0
[[flatMap]],[[flatMapDeep]],[[flatMapDepth]],[[flatten]],[[flattenDepth]]
flattenDeep([1, [2, [3, [4]], 5]])// => [1, 2, 3, 4, 5] Copy
flattenDeep([1, [2, [3, [4]], 5]])// => [1, 2, 3, 4, 5]
Recursively flattens
array
.