_.flattenDeep

_.flattenDeep(array)

Recursively flattens array.

Since

3.0.0

Arguments

  1. array (Array): The array to flatten.

Returns

(Array): Returns the new flattened array.

Example

_.flattenDeep([1, [2, [3, [4]], 5]]);
// => [1, 2, 3, 4, 5]
doc_Lodash
2016-11-27 16:37:07
Comments
Leave a Comment

Please login to continue.