This may be a recurring question.
I need to convert a string to an integer. But JS does this:
parseInt("2166767952358020110") ⇒ 2166767952358020000
I know why it happens but how to correctly convert a string to an integer?
BigInt()
doesn't fit in my case.