Recursively flatten array up to depth times.
The array to recursively flatten.
Optional
Returns the new flattened array.
Recursively flatten array up to depth times.