• 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.

    Parameters

    • condition: unknown
    • Optional errorMessage: string

    Returns asserts condition

Generated using TypeDoc