<commit_before>#is-nan <sup>[![Version Badge][2]][1]</sup>

[![Build Status][3]][4]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][11]][1]

[![browser support][9]][10]

ES6-compliant shim for Number.isNaN - the global isNaN returns false positives.

## Example

```js
Number.isNaN = require('is-nan');
var assert = require('assert');

assert.notOk(Number.isNaN(undefined));
assert.notOk(Number.isNaN(null));
assert.notOk(Number.isNaN(false));
assert.notOk(Number.isNaN(true));
assert.notOk(Number.isNaN(0));
assert.notOk(Number.isNaN(42));
assert.notOk(Number.isNaN(Infinity));
assert.notOk(Number.isNaN(-Infinity));
assert.notOk(Number.isNaN('foo'));
assert.notOk(Number.isNaN(function () {}));
assert.notOk(Number.isNaN([]));
assert.notOk(Number.isNaN({}));

assert.ok(Number.isNaN(NaN));
```

## Tests
Simply clone the repo, `npm install`, and run `npm test`

[1]: https://npmjs.org/package/is-nan
[2]: http://vb.teelaun.ch/ljharb/is-nan.svg
[3]: https://travis-ci.org/ljharb/is-nan.svg
[4]: https://travis-ci.org/ljharb/is-nan
[5]: https://david-dm.org/ljharb/is-nan.svg
[6]: https://david-dm.org/ljharb/is-nan
[7]: https://david-dm.org/ljharb/is-nan/dev-status.svg
[8]: https://david-dm.org/ljharb/is-nan#info=devDependencies
[9]: https://ci.testling.com/ljharb/is-nan.png
[10]: https://ci.testling.com/ljharb/is-nan
[11]: https://nodei.co/npm/is-nan.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/is-nan.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/is-nan.svg
[downloads-url]: http://npm-stat.com/charts.html?package=is-nan
<commit_msg>Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG.<commit_after>#is-nan <sup>[![Version Badge][2]][1]</sup>

[![Build Status][3]][4]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][11]][1]

[![browser support][9]][10]

ES6-compliant shim for Number.isNaN - the global isNaN returns false positives.

## Example

```js
Number.isNaN = require('is-nan');
var assert = require('assert');

assert.notOk(Number.isNaN(undefined));
assert.notOk(Number.isNaN(null));
assert.notOk(Number.isNaN(false));
assert.notOk(Number.isNaN(true));
assert.notOk(Number.isNaN(0));
assert.notOk(Number.isNaN(42));
assert.notOk(Number.isNaN(Infinity));
assert.notOk(Number.isNaN(-Infinity));
assert.notOk(Number.isNaN('foo'));
assert.notOk(Number.isNaN(function () {}));
assert.notOk(Number.isNaN([]));
assert.notOk(Number.isNaN({}));

assert.ok(Number.isNaN(NaN));
```

## Tests
Simply clone the repo, `npm install`, and run `npm test`

[1]: https://npmjs.org/package/is-nan
[2]: http://versionbadg.es/ljharb/is-nan.svg
[3]: https://travis-ci.org/ljharb/is-nan.svg
[4]: https://travis-ci.org/ljharb/is-nan
[5]: https://david-dm.org/ljharb/is-nan.svg
[6]: https://david-dm.org/ljharb/is-nan
[7]: https://david-dm.org/ljharb/is-nan/dev-status.svg
[8]: https://david-dm.org/ljharb/is-nan#info=devDependencies
[9]: https://ci.testling.com/ljharb/is-nan.png
[10]: https://ci.testling.com/ljharb/is-nan
[11]: https://nodei.co/npm/is-nan.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/is-nan.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/is-nan.svg
[downloads-url]: http://npm-stat.com/charts.html?package=is-nan

{'fraction_non_alphanumeric': 0.23013150371640936, 'fraction_numerical': 0.017724413950829045, 'mean_word_length': 5.652091254752852, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4241465', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1404, 'n_words': 184}