- 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
trueif and only if the given array is notnullorundefinedand has at least one item.See