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

25 lines
540 B
Markdown
Raw Normal View History

2020-03-29 13:43:52 +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; [doesExist](./js-utils.doesexist.md)
## doesExist() function
Check if a variable is not nil.
<b>Signature:</b>
```typescript
export declare function doesExist<T>(val: Optional<T>): val is T;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| val | [Optional](./js-utils.optional.md)<!-- -->&lt;T&gt; | |
2020-03-29 13:43:52 +00:00
<b>Returns:</b>
val is T
2020-03-29 13:43:52 +00:00