25 lines
557 B
Markdown
25 lines
557 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
|
|
|
|
Typeguard to check if a `Maybe` is `Some` value (not `None`<!-- -->).
|
|
|
|
<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
|
|
|