mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Avoid JIT bug in Safari 8.
This commit is contained in:
@@ -9836,7 +9836,10 @@
|
|||||||
* // => also invokes `mage.castSpell(n)` three times
|
* // => also invokes `mage.castSpell(n)` three times
|
||||||
*/
|
*/
|
||||||
function times(n, iteratee, thisArg) {
|
function times(n, iteratee, thisArg) {
|
||||||
n = nativeIsFinite(n = +n) && n > -1 ? n : 0;
|
n = +n;
|
||||||
|
if (n < 1 || !nativeIsFinite(n)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
iteratee = baseCallback(iteratee, thisArg, 1);
|
iteratee = baseCallback(iteratee, thisArg, 1);
|
||||||
|
|
||||||
var index = -1,
|
var index = -1,
|
||||||
|
|||||||
Reference in New Issue
Block a user