is-nan.js 315 B

1234567891011
  1. "use strict";
  2. function isNaN(value) {
  3. // Unlike global isNaN, this avoids type coercion
  4. // typeof check avoids IE host object issues, hat tip to
  5. // lodash
  6. var val = value; // JsLint thinks value !== value is "weird"
  7. return typeof value === "number" && value !== val;
  8. }
  9. module.exports = isNaN;