1
0
Fork 0
js-utils/docs/api/js-utils.isempty.md

25 lines
661 B
Markdown
Raw Permalink Normal View History

2021-08-01 14:47:48 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [isEmpty](./js-utils.isempty.md)
## isEmpty() function
2021-08-08 20:11:23 +00:00
Check if a `Maybe<Array<T>>` does in fact contain an array, and that array has items.
2021-08-01 14:47:48 +00:00
<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)<!-- -->&lt;Array&lt;unknown&gt; \| ReadonlyArray&lt;unknown&gt;&gt; | |
<b>Returns:</b>
boolean