- parseNum<ReturnType>(value: string | number, returnNull?: ReturnType): ReturnType extends false ? string | number : null | number
-
Type Parameters
-
ReturnType extends boolean = false
Parameters
-
value: string | number
-
Optional
returnNull: ReturnType
Returns ReturnType extends false ? string | number : null | number
Converts a string to an integer or a floating value
Example