2021-08-01 14:47:48 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [isArray](./js-utils.isarray_1.md)
|
|
|
|
|
|
|
|
## isArray() function
|
|
|
|
|
2021-08-08 20:11:23 +00:00
|
|
|
Wrapper for `Array.isArray` with better readonly type handling.
|
|
|
|
|
2021-08-01 14:47:48 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export declare function isArray<TVal>(list: TVal | ReadonlyArray<TVal>): list is ReadonlyArray<TVal>;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| list | TVal \| ReadonlyArray<TVal> | |
|
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
list is ReadonlyArray<TVal>
|
|
|
|
|