not-a-nan.js 197 B

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