25 lines
578 B
Markdown
25 lines
578 B
Markdown
|
<!-- 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.md)
|
||
|
|
||
|
## isArray() function
|
||
|
|
||
|
Wrapper for `Array.isArray` with better readonly type handling.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function isArray<TVal>(list: TVal | Array<TVal>): list is Array<TVal>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| list | TVal \| Array<TVal> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
list is Array<TVal>
|
||
|
|