Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

is-nan.js 466B

12345678910111213141516171819
  1. "use strict";
  2. /**
  3. * Compares a `value` to `NaN`
  4. *
  5. * @private
  6. * @param {*} value A value to examine
  7. * @returns {boolean} Returns `true` when `value` is `NaN`
  8. */
  9. function isNaN(value) {
  10. // Unlike global `isNaN`, this function avoids type coercion
  11. // `typeof` check avoids IE host object issues, hat tip to
  12. // lodash
  13. // eslint-disable-next-line no-self-compare
  14. return typeof value === "number" && value !== value;
  15. }
  16. module.exports = isNaN;