assertBoolean()function

assertBoolean(value: unknown, caller: AnyCaller = assertBoolean): asserts value is boolean
ParamType
valueunknown
The value to assert. required
callerAnyCaller
Function to attribute a thrown error to (defaults to assertBoolean itself). Defaults to assertBoolean
Return
asserts value is boolean
Throws
RequiredError
If value is not a boolean.

Assert that an unknown value is a boolean.