mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
24 lines
388 B
JavaScript
24 lines
388 B
JavaScript
|
/**
|
||
|
* 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 [];
|
||
|
}
|
||
|
|
||
|
export default stubArray;
|