MCPcopy
hub / github.com/lodash/lodash / flattenDeep

Function flattenDeep

lodash.js:7439–7442  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

baseFlattenFunction · 0.85

Tested by

no test coverage detected