SudoSOS Back-end API / helpers / asNumber
Function: asNumber() ​
ts
function asNumber(input): number;Converts the input to a number.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
input | any | The input which should be converted. |
Returns ​
number
The parsed integer.
Throws ​
TypeError - If the input is not a valid integer.