mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Fix the Underscore build of _.random.
This commit is contained in:
4
dist/lodash.underscore.js
vendored
4
dist/lodash.underscore.js
vendored
@@ -4961,12 +4961,12 @@
|
||||
if (min == null && max == null) {
|
||||
max = 1;
|
||||
}
|
||||
min |= 0;
|
||||
min = +min || 0;
|
||||
if (max == null) {
|
||||
max = min;
|
||||
min = 0;
|
||||
} else {
|
||||
max |= 0;
|
||||
max = +max || 0;
|
||||
}
|
||||
return min + floor(nativeRandom() * (max - min + 1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user