Sha256: 627cf107e794b1efdfd52d1cee813c0fec4c8f63e89450e8641d19644fe5c4c4
Contents?: true
Size: 493 Bytes
Versions: 14
Compression:
Stored size: 493 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
14 entries across 7 versions & 1 rubygems