This commit is contained in:
fofolee
2019-03-27 15:56:00 +08:00
parent 2b66c4959d
commit 9446af6b84
486 changed files with 27988 additions and 5342 deletions

21
node_modules/lodash/array/flattenDeep.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
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;