/**
 * Checks if 'value' is a finite number.
 * @param {Number} value The 'value' to check.
 * @return {Boolean} true|false Returns true if value is a finite number, else false.
 */
function isFiniteNum(value) {
    'use strict';
    if (value == null || typeof value !== 'number') {
        return false;
    }
    return value !== Infinity && value !== -Infinity && value === value;
}

@@ -227,16 +227,17 @@
 t';%0A
+%0A
     if (
 valu
@@ -236,24 +236,100 @@
 if (
-value =
+Number.isFinite) %7B%0A        return Number.isFinite(value);%0A    %7D%0A%0A    return value !
 = null 
-%7C%7C
+&&
  typ
@@ -338,19 +338,19 @@
 f value 
-!
 ==
+=
  'number
@@ -354,50 +354,19 @@
 ber'
-) %7B%0A        return false;
+ &&
 %0A   
- %7D%0A
     
-return
  val
@@ -402,24 +402,32 @@
 -Infinity &&
+%0A       
  value === v

Check with ES2015's Number.isFinite() if supported