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: about 1 month ago
JSON representation

ES2015 Number.isNaN() ponyfill

Lists

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

```
$ npm install number-is-nan
```

## Usage

```js
const numberIsNan = require('number-is-nan');

numberIsNan(NaN);
//=> true

numberIsNan('unicorn');
//=> false
```

---



Get professional support for this package with a Tidelift subscription




Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.