Package Exports
- is-finite-x
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-finite-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-finite-x
ES6-compliant shim for Number.isFinite.
See: 20.1.2.2 Number.isFinite ( number )
Version: 1.3.0
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750
module.exports ⇒ boolean ⏏
This method determines whether the passed value is a finite number.
Kind: Exported member
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
var numIsFinite = require('is-finite-x');
numIsFinite(Infinity); // false
numIsFinite(NaN); // false
numIsFinite(-Infinity); // false
numIsFinite(0); // true
numIsFinite(2e64); // true
numIsFinite('0'); // false, would've been true with
// global isFinite('0')
numIsFinite(null); // false, would've been true with