_baseIsNaN.js 296 B

12345678910111213
  1. /**
  2. * The base implementation of `_.isNaN` without support for number objects.
  3. *
  4. * @private
  5. * @param {*} value The value to check.
  6. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  7. */
  8. function baseIsNaN(value) {
  9. return value !== value;
  10. }
  11. module.exports = baseIsNaN;