mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Bump to v4.4.0.
This commit is contained in:
4
times.js
4
times.js
@@ -1,5 +1,5 @@
|
||||
import baseCastFunction from './_baseCastFunction';
|
||||
import baseTimes from './_baseTimes';
|
||||
import toFunction from './_toFunction';
|
||||
import toInteger from './toInteger';
|
||||
|
||||
/** Used as references for various `Number` constants. */
|
||||
@@ -37,7 +37,7 @@ function times(n, iteratee) {
|
||||
var index = MAX_ARRAY_LENGTH,
|
||||
length = nativeMin(n, MAX_ARRAY_LENGTH);
|
||||
|
||||
iteratee = toFunction(iteratee);
|
||||
iteratee = baseCastFunction(iteratee);
|
||||
n -= MAX_ARRAY_LENGTH;
|
||||
|
||||
var result = baseTimes(length, iteratee);
|
||||
|
||||
Reference in New Issue
Block a user