661 B
661 B
Home > @apextoaster/js-utils > isEmpty
isEmpty() function
Check if a Maybe<Array<T>>
does in fact contain an array, and that array has items.
Signature:
export declare function isEmpty(val: Maybe<Array<unknown> | ReadonlyArray<unknown>>): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
val | Maybe<Array<unknown> | ReadonlyArray<unknown>> |
Returns:
boolean