source: node_modules/core-js-pure/internals/not-a-nan.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 215 bytes
Line 
1'use strict';
2var $RangeError = RangeError;
3
4module.exports = function (it) {
5 // eslint-disable-next-line no-self-compare -- NaN check
6 if (it === it) return it;
7 throw new $RangeError('NaN is not allowed');
8};
Note: See TracBrowser for help on using the repository browser.