Function assertDefined

  • Asserts that the given input is defined (not null and not undefined)

    Type Parameters

    • T

    Parameters

    • input: T

      The value to check.

    • OptionalfailureMessage: string

      Message to include in error message if this assertion fails.

    Returns asserts input is NonNullable<T>