Bump to v3.0.0.

This commit is contained in:
John-David Dalton
2015-01-08 00:37:01 -08:00
committed by jdalton
commit 9b7c4d6761
349 changed files with 23184 additions and 0 deletions

22
array/flattenDeep.js Normal file
View File

@@ -0,0 +1,22 @@
define(['../internal/baseFlatten'], function(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) : [];
}
return flattenDeep;
});