flattenDeep

Array
since 3.0.0

Arguments

  • Array The array to flatten.

Returns

Array the new flattened array.

Recursively flattens array.

Example of Lodash _.flattenDeep

_.flattenDeep([1, [2, [3, [4]], 5]]);
// => [1, 2, 3, 4, 5]