Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/number-is-nan
ES2015 Number.isNaN() ponyfill
https://github.com/sindresorhus/number-is-nan
Last synced: 4 months ago
JSON representation
ES2015 Number.isNaN() ponyfill
- Host: GitHub
- URL: https://github.com/sindresorhus/number-is-nan
- Owner: sindresorhus
- License: mit
- Archived: true
- Created: 2015-05-20T20:43:39.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-05-02T17:43:43.000Z (8 months ago)
- Last Synced: 2024-05-19T14:01:19.793Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 28
- Watchers: 7
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
- Security: .github/security.md
Awesome Lists containing this project
- awesome-ponyfills - number-is-nan - [`Number.isNaN`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) (Numbers)
README
Deprecated as this is now natively available in all modern browsers and Node.js versions.
---
# number-is-nan
> ES2015 [`Number.isNaN()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) [ponyfill](https://ponyfill.com)
## Install
```sh
npm install number-is-nan
```## Usage
```js
const numberIsNan = require('number-is-nan');numberIsNan(NaN);
//=> truenumberIsNan('unicorn');
//=> false
```