The Number isFinite() static method returns true if a number is a finite number. It returns false the number is Infinity or -Infinity. It returns false if passed NaN.

    
    console.log(Number.isFinite(76));
    // true

    console.log(Number.isFinite(Infinity));
    // false