Test if the condition is truthy. If condition is false, it throws an error with an optional message. If the message parameter is missing, it throws an error with a default message.
condition
Optional
Generated using TypeDoc
Test if the
condition
is truthy. Ifcondition
is false, it throws an error with an optional message. If the message parameter is missing, it throws an error with a default message.