Skip to content

Latest commit

 

History

History
7 lines (3 loc) · 381 Bytes

check-integer-safety.md

File metadata and controls

7 lines (3 loc) · 381 Bytes

Check integer safety in JavaScript

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.