2020-03-29 13:43:52 +00:00
|
|
|
<!-- 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
|
|
|
|
|
2021-07-10 21:54:41 +00:00
|
|
|
Check if a variable is some `T`<!-- -->.
|
2020-03-29 13:43:52 +00:00
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2021-07-10 21:54:41 +00:00
|
|
|
export declare function doesExist<T>(val: Maybe<T>): val is T;
|
2020-03-29 13:43:52 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-07-10 21:54:41 +00:00
|
|
|
| val | [Maybe](./js-utils.maybe.md)<!-- --><T> | |
|
2020-03-29 13:43:52 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-06-29 23:23:16 +00:00
|
|
|
val is T
|
2020-03-29 13:43:52 +00:00
|
|
|
|