Deprecated as this is now natively available in all modern browsers and Node.js versions.
ES2015
Number.isFinite()
ponyfill
$ npm install is-finite
var numIsFinite = require('is-finite');
numIsFinite(4);
//=> true
numIsFinite(Infinity);
//=> false