Skip to content

Parse Library

Rohan Singh edited this page Jun 7, 2024 · 1 revision

Exports

parseFloat

parseFloat(str: string): number | undefined

Parses the given string as a floating point number. Returns undefined if the string is not a valid floating point number.

parseInt

parseInt(str: string): number | undefined

Parses the given string as an integer. Returns undefined if the string is not a valid integer.

parseHex

parseHex(str: string): number | undefined

Parses the given string as a hexadecimal integer. Returns undefined if the string is not a valid hexadecimal integer.