Function assert

  • Throw an Error if cond is falsey.

    Parameters

    • cond: any
    • msg: string

    Returns void