Function assert

  • Assert that the statement is true, otherwise invoke the error.

    Parameters

    • statement: boolean
    • error: string

      The message which is passed into an Error

    Returns asserts statement