[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [hasItems](./js-utils.hasitems_1.md)
## hasItems() function
Signature:
```typescript
export declare function hasItems(val: Optional>): val is ReadonlyArray;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| val | [Optional](./js-utils.optional.md)<ReadonlyArray<T>> | |
Returns:
val is ReadonlyArray<T>