• Assert an condition, if "false" throw error Note: it is not named "assert" to differentiate between node and jest types

    Parameters

    • cond: unknown

      The Condition to throw

    • Optional error: Error

      An Custom Error to throw

    Returns asserts cond

Generated using TypeDoc