Sha256: c245f405061e1150f378ff297530e932970ba853dfc1bb230a5f8af919ffb036

Contents?: true

Size: 577 Bytes

Versions: 264

Compression:

Stored size: 577 Bytes

Contents

var baseFlatten = require('./_baseFlatten');

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * 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]]);
 * // => [1, 2, 3, 4, 5]
 */
function flattenDeep(array) {
  var length = array == null ? 0 : array.length;
  return length ? baseFlatten(array, INFINITY) : [];
}

module.exports = flattenDeep;

Version data entries

264 entries across 262 versions & 29 rubygems

Version Path
govuk_publishing_components-16.28.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.27.1 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.27.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.26.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.25.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.24.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.23.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.22.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.21.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.20.1 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.20.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.19.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.18.0 node_modules/lodash/flattenDeep.js
govuk_publishing_components-16.17.0 node_modules/lodash/flattenDeep.js
blsk-sevcore-0.0.2 blsk_old/bluesky-doc/bluesky-doc/node_modules/lodash/flattenDeep.js
ela-4.1.6 node_modules/lodash/flattenDeep.js
ela-4.1.5 node_modules/lodash/flattenDeep.js
ela-4.1.4 node_modules/lodash/flattenDeep.js
ela-4.1.3 node_modules/lodash/flattenDeep.js
optimacms-0.4.3 spec/dummy/node_modules/lodash/flattenDeep.js