Skip to content

SudoSOS Back-end API / helpers / asNumber

Function: asNumber() ​

ts
function asNumber(input): number;

Converts the input to a number.

Parameters ​

ParameterTypeDescription
inputanyThe input which should be converted.

Returns ​

number

The parsed integer.

Throws ​

TypeError - If the input is not a valid integer.