{"id":13826153,"url":"https://github.com/es-shims/is-nan","last_synced_at":"2025-08-23T19:04:55.024Z","repository":{"id":13376506,"uuid":"16064377","full_name":"es-shims/is-nan","owner":"es-shims","description":"ES6-compliant shim for Number.isNaN - the global isNaN returns false positives.","archived":false,"fork":false,"pushed_at":"2022-11-01T23:46:48.000Z","size":115,"stargazers_count":12,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-22T03:08:08.472Z","etag":null,"topics":["ecmascript","isnan","javascript","nan","number","polyfill","shim"],"latest_commit_sha":null,"homepage":"https://262.ecma-international.org/6.0/#sec-number.isnan","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/es-shims.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/is-nan","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2014-01-20T07:56:04.000Z","updated_at":"2023-09-11T22:19:15.000Z","dependencies_parsed_at":"2023-01-13T17:26:41.071Z","dependency_job_id":null,"html_url":"https://github.com/es-shims/is-nan","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fis-nan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fis-nan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fis-nan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/es-shims%2Fis-nan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/es-shims","download_url":"https://codeload.github.com/es-shims/is-nan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252126750,"owners_count":21698964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecmascript","isnan","javascript","nan","number","polyfill","shim"],"created_at":"2024-08-04T09:01:32.986Z","updated_at":"2025-05-07T12:55:15.186Z","avatar_url":"https://github.com/es-shims.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/is-nan"],"categories":["JavaScript"],"sub_categories":[],"readme":"# is-nan \u003csup\u003e[![Version Badge][2]][1]\u003c/sup\u003e\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\nES2015-compliant shim for Number.isNaN - the global isNaN returns false positives.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://262.ecma-international.org/6.0/#sec-number.isnan).\n\n## Example\n\n```js\nNumber.isNaN = require('is-nan');\nvar assert = require('assert');\n\nassert.notOk(Number.isNaN(undefined));\nassert.notOk(Number.isNaN(null));\nassert.notOk(Number.isNaN(false));\nassert.notOk(Number.isNaN(true));\nassert.notOk(Number.isNaN(0));\nassert.notOk(Number.isNaN(42));\nassert.notOk(Number.isNaN(Infinity));\nassert.notOk(Number.isNaN(-Infinity));\nassert.notOk(Number.isNaN('foo'));\nassert.notOk(Number.isNaN(function () {}));\nassert.notOk(Number.isNaN([]));\nassert.notOk(Number.isNaN({}));\n\nassert.ok(Number.isNaN(NaN));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/is-nan\n[2]: https://versionbadg.es/es-shims/is-nan.svg\n[5]: https://david-dm.org/es-shims/is-nan.svg\n[6]: https://david-dm.org/es-shims/is-nan\n[7]: https://david-dm.org/es-shims/is-nan/dev-status.svg\n[8]: https://david-dm.org/es-shims/is-nan#info=devDependencies\n[11]: https://nodei.co/npm/is-nan.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/is-nan.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-nan.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-nan\n[codecov-image]: https://codecov.io/gh/es-shims/is-nan/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/is-nan/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/is-nan\n[actions-url]: https://github.com/es-shims/is-nan/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Fis-nan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fes-shims%2Fis-nan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fes-shims%2Fis-nan/lists"}