Date

“Util” Methods

_.stubArray()

source npm package

This method returns a new empty array.

引入版本

4.13.0

返回值
(Array) : Returns the new empty array.

示例
var arrays = _.times(2, _.stubArray);
 
console.log(arrays);
// => [[], []]
 
console.log(arrays[0] === arrays[1]);
// => false