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

25 lines
540 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [doesExist](./js-utils.doesexist.md)
## doesExist() function
Check if a variable is some `T`<!-- -->.
<b>Signature:</b>
```typescript
export declare function doesExist<T>(val: Maybe<T>): val is T;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| val | [Maybe](./js-utils.maybe.md)<!-- -->&lt;T&gt; | |
<b>Returns:</b>
val is T