The Number isSafeInteger() static method determines whether the provided number is a "safe" integer that is less than the 253 – 1 number that JavaScript can represent.

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

    console.log(Number.isSafeInteger(-100000000));
    // true

    console.log(Number.isSafeInteger(0.5));
    // false