Sha256: 73f0262277807336b8e9ea68b270f20d1c116fd640827371044f034a973cfbf2
Contents?: true
Size: 488 Bytes
Versions: 153
Compression:
Stored size: 488 Bytes
Contents
var baseFlatten = require('../internal/baseFlatten'); /** * Recursively flattens a nested array. * * @static * @memberOf _ * @category Array * @param {Array} array The array to recursively flatten. * @returns {Array} Returns the new flattened array. * @example * * _.flattenDeep([1, [2, 3, [4]]]); * // => [1, 2, 3, 4] */ function flattenDeep(array) { var length = array ? array.length : 0; return length ? baseFlatten(array, true) : []; } module.exports = flattenDeep;
Version data entries
153 entries across 80 versions & 8 rubygems