25 lines
540 B
Markdown
25 lines
540 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [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)<!-- --><T> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
val is T
|
|
|