_.stubArray()

sourcenpm package

This method returns a new empty array.

Since

4.13.0

Returns

(Array): Returns the new empty array.

Example

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