isInvalid.mjs 151 B

123456
  1. /**
  2. * Returns true if a value is undefined, or NaN.
  3. */
  4. export default function isInvalid(value) {
  5. return value === undefined || value !== value;
  6. }