BigInt() wrapper object, for example, like so:
// ES10+ const numericStr = '9007199254740991123456789'; const bigIntVal = BigInt(numericStr); console.log(bigIntVal); // 9007199254740991123456789n
Hope you found this post useful. It was published . Please show your love and support by sharing this post.