_.stubArray()
This method returns a new empty array.
Since
4.13.0
Returns
(Array): Returns the new empty array.
Example
var arrays = _.times(2, _.stubArray);console.log(arrays);// => [[], []]console.log(arrays[0] === arrays[1]);// => false
当前内容版权归 lodash.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 lodash.com .