Skip to content

SudoSOS Back-end API / helpers / asBoolean

Function: asBoolean() ​

ts
function asBoolean(input): boolean;

Converts the input to a boolean

Parameters ​

ParameterTypeDescription
inputanyThe input which should be converted.

Returns ​

boolean

  • for 1, '1', true, 'true' (case-insensitive), otherwise false.