Function isNonEmptyArray

  • A NonEmptyArray type guard.

    Returns

    Whether the value is a non-empty array.

    Type Parameters

    • Element

      The non-empty array member type.

    Parameters

    • value: Element[]

      The value to check.

    Returns value is NonEmptyArray<Element>