mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Use strict equality undefined checks instead of nullish param checks in _.random.
This commit is contained in:
@@ -11012,10 +11012,10 @@
|
||||
if (floating && isIterateeCall(min, max, floating)) {
|
||||
max = floating = undefined;
|
||||
}
|
||||
var noMin = min == null,
|
||||
noMax = max == null;
|
||||
var noMin = min === undefined,
|
||||
noMax = max === undefined;
|
||||
|
||||
if (floating == null) {
|
||||
if (floating === undefined) {
|
||||
if (noMax && typeof min == 'boolean') {
|
||||
floating = min;
|
||||
min = 1;
|
||||
|
||||
Reference in New Issue
Block a user