- hasItems<T>(array: undefined | null | T[]): array is NonEmptyArray<T>
-
Parameters
-
array: undefined | null | T[]
- hasItems<T>(iterable: undefined | null | Iterable<T>): iterable is Iterable<T>
-
Parameters
-
iterable: undefined | null | Iterable<T>
Returns iterable is Iterable<T>
Returns
true
if and only if the given array is notnull
orundefined
and has at least one item.See