_.stubArray

_.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
doc_Lodash
2016-11-27 16:40:44
Comments
Leave a Comment

Please login to continue.