An ESnext spec-compliant Number.isFinite
shim/polyfill/replacement that works as far down as ES3.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
npm install --save number.isfinite
var x = 0.007;
console.log(Number.isFinite(3)); // true
console.log(Number.isFinite(Infinity)); // false
console.log(Number.isFinite("7")); // false
Clone the repo, npm install
, and run npm test