assertFalsy()function

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

Assert that an unknown value is falsy.