formatBoolean()function
formatBoolean(value: boolean): string
| Param | Type | |
|---|---|---|
value | boolean | 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"