Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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);
//=> true

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