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

ES2015 Number.isFinite() ponyfill

License

Notifications You must be signed in to change notification settings

sindresorhus/is-finite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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