Function assert

  • Parameters

    • condition: any
    • Optionalmsg: string

    Returns asserts condition

    Asserts that the given condition is true, otherwise throws an error.