assertFalse()function

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

Assert that an unknown value is exactly false.