• File: shim.js
  • Full Path: /var/www/nodejs/Notifications_Imali_API/node_modules/is-nan/shim.js
  • Date Modified: 10/26/1985 3:15 PM
  • File size: 387 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'use strict';

var define = require('define-properties');
var getPolyfill = require('./polyfill');

/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */

module.exports = function shimNumberIsNaN() {
	var polyfill = getPolyfill();
	define(Number, { isNaN: polyfill }, {
		isNaN: function testIsNaN() {
			return Number.isNaN !== polyfill;
		}
	});
	return polyfill;
};