25 lines
521 B
Markdown
25 lines
521 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 | <code>Optional<T></code> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
`val is T`
|
||
|
|