9 lines
216 B
Plaintext
9 lines
216 B
Plaintext
// @flow strict
|
|
|
|
/**
|
|
* Returns true if a value is null, undefined, or NaN.
|
|
*/
|
|
export default function isNullish(value: mixed): boolean %checks {
|
|
return value === null || value === undefined || value !== value;
|
|
}
|