not-a-nan.js 215 B

12345678
  1. 'use strict';
  2. var $RangeError = RangeError;
  3. module.exports = function (it) {
  4. // eslint-disable-next-line no-self-compare -- NaN check
  5. if (it === it) return it;
  6. throw new $RangeError('NaN is not allowed');
  7. };