parseIntX(source: undefined | null | string): number | undefined
There are a lot of ways to convert a string to a number in JavaScript.
And they are all slightly different!
I get rid of NaNs, infinities, numbers with a fraction, or integers
that are too big to fit into JavaScript numbers. These are all
converted into undefined.
Returns
A finite integer or undefined if the parse failed.
There are a lot of ways to convert a string to a number in JavaScript. And they are all slightly different!
I get rid of NaNs, infinities, numbers with a fraction, or integers that are too big to fit into JavaScript numbers. These are all converted into undefined.
Returns
A finite integer or undefined if the parse failed.