is-finite-x

WebJar for is-finite-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-finite-x
Last Version

Last Version

3.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

is-finite-x
WebJar for is-finite-x
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Xotic750/is-finite-x

Download is-finite-x

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : infinity-x jar [1.0.0,2)
org.webjars.npm : is-nan-x jar [1.0.1,2)

Project Modules

There are no modules declared in this project.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

is-finite-x

ES6-compliant shim for Number.isFinite.

See: 20.1.2.2 Number.isFinite ( number )

module.exports(number)boolean

This method determines whether the passed value is a finite number.

Kind: Exported function
Returns: boolean - A Boolean indicating whether or not the given value is a finite number.

Param Type Description
number * The value to be tested for finiteness.

Example

import numIsFinite from 'is-finite-x';

console.log(numIsFinite(Infinity)); // false
console.log(numIsFinite(NaN)); // false
console.log(numIsFinite(-Infinity)); // false

console.log(numIsFinite(0)); // true
console.log(numIsFinite(2e64)); // true

console.log(numIsFinite('0')); // false, would've been true with
// global isFinite('0')
console.log(numIsFinite(null)); // false, would've been true with

Versions

Version
3.0.2