mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +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)) {
|
if (floating && isIterateeCall(min, max, floating)) {
|
||||||
max = floating = undefined;
|
max = floating = undefined;
|
||||||
}
|
}
|
||||||
var noMin = min == null,
|
var noMin = min === undefined,
|
||||||
noMax = max == null;
|
noMax = max === undefined;
|
||||||
|
|
||||||
if (floating == null) {
|
if (floating === undefined) {
|
||||||
if (noMax && typeof min == 'boolean') {
|
if (noMax && typeof min == 'boolean') {
|
||||||
floating = min;
|
floating = min;
|
||||||
min = 1;
|
min = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user