_.flattenDepth(array, [depth=1])
Recursively flatten array up to depth times.
Arguments
array (Array)
: The array to flatten.
[depth=1] (number)
: The maximum recursion depth.
Returns
(Array)
: Returns the new flattened array