Tries to parse an Integer from a String
Parse Integer
const i = parseInteger("1");console.log(i); // 1
Parse the first valid Integer
const i = parseInteger(" 3.4a");console.log(i); // 3
the parsed Iloat if successful, otherwise undefined
undefined
Generated using TypeDoc
Tries to parse an Integer from a String
Example
Parse Integer
Example
Parse the first valid Integer
Returns
the parsed Iloat if successful, otherwise
undefined