• Throws an error if and only if the given array is null, undefined or has no items.

    See

    hasItems

    Type Parameters

    Type Parameters

    • T

    Parameters

    • array: undefined | null | T[]

    Returns asserts array is NonEmptyArray<T>

  • Throws an error if and only if the given iterable is null, undefined or has no items.

    See

    hasItems

    Type Parameters

    Type Parameters

    • T

    Parameters

    • iterable: undefined | null | Iterable<T>

    Returns asserts iterable is Iterable<T>

Generated using TypeDoc