Algorand TypeScript
    Preparing search index...

    Function assert

    • Asserts that condition is truthy, otherwise error and halt execution.

      Parameters

      • condition: unknown

        An expression that can be evaluated as truthy of falsy

      • Optionalmessage: string

        The message to show if condition is falsy and an error is raised.

      Returns asserts condition