• judge condition whether is true or throw error

    Parameters

    • condition: unknown

      judge condition

    • Optional message: string | Error

      if condition not true will throw this as error message

    Returns asserts condition

Generated using TypeDoc