Skip to content

Instantly share code, notes, and snippets.

@lbvf50mobile lbvf50mobile/bigint.js
Last active Jul 4, 2019

What would you like to do?
for @andreyberezhnoy solution for Twitter pagination
BigInt(BigInt( "1062462935174393900") - BigInt(1)).toString() // "1062462935174393899"
Number.MAX_SAFE_INTEGER < BigInt( "1062462935174393900") // ture
BigInt( "1062462935174393900") > Number.MAX_SAFE_INTEGER
BigInt( "1062462935174393900") - BigInt(Number.MAX_SAFE_INTEGER) // 1053455735919652909n

This comment has been minimized.

Copy link
Owner Author

lbvf50mobile commented Jul 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.