formatBoolean()function

formatBoolean(value: boolean): string
ParamType
valueboolean
Boolean value to format. required
Return
string
"Yes" if value is true, otherwise "No".

Format a boolean as "Yes" or "No".

Examples

formatBoolean(true) // "Yes"