Created
January 9, 2025 17:05
-
-
Save empjustine/d0390ad4d162f5e1712807c908c68c31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Number.isSafeInteger(Number.MIN_SAFE_INTEGER); | |
Number.isSafeInteger(Number.MAX_SAFE_INTEGER); | |
Number.MIN_SAFE_INTEGER === -(2 ** 53 - 1); // -9007199254740991 | |
Number.MAX_SAFE_INTEGER === (2 ** 53 - 1); // -9007199254740991 | |
Number.MAX_SAFE_INTEGER === 9_007_199_254_740_991; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment