Use the Number.isSafeInteger
method to check if a number can safely be represented as an IEEE-754 double precision number, and cannot be result of rounding any other integer to fit that representation.
See documentation on MDN.
Use the Number.isSafeInteger
method to check if a number can safely be represented as an IEEE-754 double precision number, and cannot be result of rounding any other integer to fit that representation.
See documentation on MDN.