mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Update _.times doc example to not duplicate _.stubTrue. [ci skip]
This commit is contained in:
@@ -15327,8 +15327,8 @@
|
|||||||
* _.times(3, String);
|
* _.times(3, String);
|
||||||
* // => ['0', '1', '2']
|
* // => ['0', '1', '2']
|
||||||
*
|
*
|
||||||
* _.times(4, _.constant(true));
|
* _.times(4, _.constant(0));
|
||||||
* // => [true, true, true, true]
|
* // => [0, 0, 0, 0]
|
||||||
*/
|
*/
|
||||||
function times(n, iteratee) {
|
function times(n, iteratee) {
|
||||||
n = toInteger(n);
|
n = toInteger(n);
|
||||||
|
|||||||
Reference in New Issue
Block a user