Type Alias IsNonEmptyArray<S>

IsNonEmptyArray: S extends NonEmptyArray<S[number]> ? true : false

Determines if the given type is an array whose length is greater than zero.

Type Parameters

  • S extends ReadonlyArray<unknown>

    The array type to check.