assertTrue()function

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

Assert that an unknown value is exactly true.