ES6 Number.isFinite() ponyfill