You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					24 lines
				
				390 B
			
		
		
			
		
	
	
					24 lines
				
				390 B
			| 
											3 years ago
										 | /** | ||
|  |  * 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 []; | ||
|  | } | ||
|  | 
 | ||
|  | module.exports = stubArray; |