is-nan

WebJar for is-nan

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-nan
Last Version

Last Version

1.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-nan
WebJar for is-nan
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/es-shims/is-nan

Download is-nan

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-nan/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-nan</artifactId>
    <version>1.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-nan/
implementation 'org.webjars.npm:is-nan:1.3.0'
// https://jarcasting.com/artifacts/org.webjars.npm/is-nan/
implementation ("org.webjars.npm:is-nan:1.3.0")
'org.webjars.npm:is-nan:jar:1.3.0'
<dependency org="org.webjars.npm" name="is-nan" rev="1.3.0">
  <artifact name="is-nan" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-nan', version='1.3.0')
)
libraryDependencies += "org.webjars.npm" % "is-nan" % "1.3.0"
[org.webjars.npm/is-nan "1.3.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : define-properties jar [1.1.3,2)

Project Modules

There are no modules declared in this project.

is-nan Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

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

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Example

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

org.webjars.npm

ECMAScript Shims

A community host for shims and polyfills that are compliant to EcmaScript specs.

Versions

Version
1.3.0
1.0.1