This commit is contained in:
sanfan.hx
2019-05-28 10:32:16 +08:00
parent 9132c00272
commit ec46955a9e
13228 changed files with 624107 additions and 56 deletions

View File

@ -0,0 +1,23 @@
/**
* This method returns a new empty array.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {Array} Returns the new empty array.
* @example
*
* var arrays = _.times(2, _.stubArray);
*
* console.log(arrays);
* // => [[], []]
*
* console.log(arrays[0] === arrays[1]);
* // => false
*/
function stubArray() {
return [];
}
module.exports = stubArray;