isNonEmptyList
isNonEmptyList<
A>(list):list is NonEmptyList<A>
Defined in: Types/NonEmptyList.ts:29
Type guard that checks if an array is non-empty.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”readonly A[]
Returns
Section titled “Returns”list is NonEmptyList<A>