pax_global_header00006660000000000000000000000064125271720120014511gustar00rootroot0000000000000052 comment=0f394b1bc33185c40304363b209e3f0588dbeeb3 number-is-nan-1.0.0/000077500000000000000000000000001252717201200141625ustar00rootroot00000000000000number-is-nan-1.0.0/.editorconfig000066400000000000000000000003471252717201200166430ustar00rootroot00000000000000root = true [*] indent_style = tab end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [{package.json,*.yml}] indent_style = space indent_size = 2 [*.md] trim_trailing_whitespace = false number-is-nan-1.0.0/.gitattributes000066400000000000000000000000141252717201200170500ustar00rootroot00000000000000* text=auto number-is-nan-1.0.0/.gitignore000066400000000000000000000000151252717201200161460ustar00rootroot00000000000000node_modules number-is-nan-1.0.0/.jshintrc000066400000000000000000000002521252717201200160060ustar00rootroot00000000000000{ "node": true, "esnext": true, "bitwise": true, "curly": true, "immed": true, "newcap": true, "noarg": true, "undef": true, "unused": "vars", "strict": true } number-is-nan-1.0.0/.travis.yml000066400000000000000000000001101252717201200162630ustar00rootroot00000000000000sudo: false language: node_js node_js: - 'iojs' - '0.12' - '0.10' number-is-nan-1.0.0/index.js000066400000000000000000000001221252717201200156220ustar00rootroot00000000000000'use strict'; module.exports = Number.isNaN || function (x) { return x !== x; }; number-is-nan-1.0.0/license000066400000000000000000000021371252717201200155320ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. number-is-nan-1.0.0/package.json000066400000000000000000000011551252717201200164520ustar00rootroot00000000000000{ "name": "number-is-nan", "version": "1.0.0", "description": "ES6 Number.isNaN() ponyfill", "license": "MIT", "repository": "sindresorhus/number-is-nan", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "node test.js" }, "files": [ "index.js" ], "keywords": [ "es6", "es2015", "ecmascript", "harmony", "ponyfill", "polyfill", "shim", "number", "is", "nan", "not" ], "devDependencies": { "ava": "0.0.4" } } number-is-nan-1.0.0/readme.md000066400000000000000000000011251252717201200157400ustar00rootroot00000000000000# number-is-nan [![Build Status](https://travis-ci.org/sindresorhus/number-is-nan.svg?branch=master)](https://travis-ci.org/sindresorhus/number-is-nan) > ES6 [`Number.isNaN()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) ponyfill > Ponyfill: A polyfill that doesn't overwrite the native method ## Install ``` $ npm install --save number-is-nan ``` ## Usage ```js var numberIsNan = require('number-is-nan'); numberIsNan(NaN); //=> true numberIsNan('unicorn'); //=> false ``` ## License MIT © [Sindre Sorhus](http://sindresorhus.com) number-is-nan-1.0.0/test.js000066400000000000000000000007731252717201200155060ustar00rootroot00000000000000'use strict'; var test = require('ava'); Number.isNaN = undefined; var numberIsNan = require('./'); test(function (t) { t.assert(numberIsNan(NaN)); t.assert(!numberIsNan()); t.assert(!numberIsNan(true)); t.assert(!numberIsNan(false)); t.assert(!numberIsNan(null)); t.assert(!numberIsNan(0)); t.assert(!numberIsNan(Infinity)); t.assert(!numberIsNan(-Infinity)); t.assert(!numberIsNan('')); t.assert(!numberIsNan('unicorn')); t.assert(!numberIsNan({})); t.assert(!numberIsNan([])); t.end(); });