9 lines
215 B
JavaScript
9 lines
215 B
JavaScript
'use strict';
|
|
var $RangeError = RangeError;
|
|
|
|
module.exports = function (it) {
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
if (it === it) return it;
|
|
throw new $RangeError('NaN is not allowed');
|
|
};
|