Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 439 Bytes

readme.md

File metadata and controls

25 lines (16 loc) · 439 Bytes

Deprecated as this is now natively available in all modern browsers and Node.js versions.


is-finite

ES2015 Number.isFinite() ponyfill

Install

$ npm install is-finite

Usage

var numIsFinite = require('is-finite');

numIsFinite(4);
//=> true

numIsFinite(Infinity);
//=> false