isInvalid.js.flow 192 Bytes
Newer Older
1 2 3 4 5 6 7 8
// @flow strict

/**
 * Returns true if a value is undefined, or NaN.
 */
export default function isInvalid(value: mixed): boolean %checks {
  return value === undefined || value !== value;
}