mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v3.10.0.
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
define(['../internal/baseToString', '../internal/root'], function(baseToString, root) {
|
||||
|
||||
/** Native method references. */
|
||||
var floor = Math.floor;
|
||||
|
||||
/* Native method references for those with the same name as other `lodash` methods. */
|
||||
var nativeIsFinite = root.isFinite;
|
||||
var nativeFloor = Math.floor,
|
||||
nativeIsFinite = root.isFinite;
|
||||
|
||||
/**
|
||||
* Repeats the given string `n` times.
|
||||
@@ -39,7 +37,7 @@ define(['../internal/baseToString', '../internal/root'], function(baseToString,
|
||||
if (n % 2) {
|
||||
result += string;
|
||||
}
|
||||
n = floor(n / 2);
|
||||
n = nativeFloor(n / 2);
|
||||
string += string;
|
||||
} while (n);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user