ES6
Number.isFinite()
ponyfillPonyfill: A polyfill that doesn't overwrite the native method
$ npm install --save is-finite
var numIsFinite = require('is-finite');
numIsFinite(4);
//=> true
numIsFinite(Infinity);
//=> false
MIT © Sindre Sorhus