Use strict equality undefined checks instead of nullish param checks in _.random.

This commit is contained in:
John-David Dalton
2015-10-22 17:07:50 -07:00
parent 64e98d897f
commit 91fcf837f7

View File

@@ -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;