* Recursively flattens `array`. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to flatten. * @returns {Array} Returns the new flattened array. * @example * * _.flattenDeep([1, [2, [3, [4]], 5]]); * //
(array)
| 7437 | * // => [1, 2, 3, 4, 5] |
| 7438 | */ |
| 7439 | function flattenDeep(array) { |
| 7440 | var length = array == null ? 0 : array.length; |
| 7441 | return length ? baseFlatten(array, INFINITY) : []; |
| 7442 | } |
| 7443 | |
| 7444 | /** |
| 7445 | * Recursively flatten `array` up to `depth` times. |
nothing calls this directly
no test coverage detected