23 lines
484 B
Markdown
23 lines
484 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [isSome](./js-utils.issome.md)
|
||
|
|
||
|
## isSome() function
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function isSome<T>(val: Maybe<T>): val is T;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| val | [Maybe](./js-utils.maybe.md)<!-- --><T> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
val is T
|
||
|
|