The Number isInteger() static method determines whether the passed value is an integer.

    
    console.log(Number.isInteger(123));
    // true

    console.log(Number.isInteger('123'));
    // false