Checks if a value is null or undefined.
null
undefined
The value to check.
True if the value is null or undefined.
isNullish(null); // trueisNullish(undefined); // trueisNullish(""); // false Copy
isNullish(null); // trueisNullish(undefined); // trueisNullish(""); // false
Checks if a value is
nullorundefined.