ES2015 Number.isFinite() ponyfill
Number.isFinite()
$ npm install is-finite
var numIsFinite = require('is-finite'); numIsFinite(4); //=> true numIsFinite(Infinity); //=> false