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