1 var baseTimes = require(
'./_baseTimes'),
2 castFunction = require(
'./_castFunction'),
3 toInteger = require(
'./toInteger');
6 var MAX_SAFE_INTEGER = 9007199254740991;
9 var MAX_ARRAY_LENGTH = 4294967295;
12 var nativeMin = Math.min;
33 function times(n, iteratee) {
35 if (n < 1 || n > MAX_SAFE_INTEGER) {
38 var index = MAX_ARRAY_LENGTH,
39 length = nativeMin(n, MAX_ARRAY_LENGTH);
41 iteratee = castFunction(iteratee);
42 n -= MAX_ARRAY_LENGTH;
44 var result = baseTimes(length, iteratee);
51 module.exports = times;