SudoSOS Back-end API / helpers / asBoolean
Function: asBoolean() ​
ts
function asBoolean(input): boolean;Converts the input to a boolean
Parameters ​
| Parameter | Type | Description |
|---|---|---|
input | any | The input which should be converted. |
Returns ​
boolean
- for 1, '1', true, 'true' (case-insensitive), otherwise false.