25 lines
661 B
Markdown
25 lines
661 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [isEmpty](./js-utils.isempty.md)
|
|
|
|
## isEmpty() function
|
|
|
|
Check if a `Maybe<Array<T>>` does in fact contain an array, and that array has items.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
export declare function isEmpty(val: Maybe<Array<unknown> | ReadonlyArray<unknown>>): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| val | [Maybe](./js-utils.maybe.md)<!-- --><Array<unknown> \| ReadonlyArray<unknown>> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
boolean
|
|
|