1
0
Fork 0
js-utils/docs/api/js-utils.issome.md

25 lines
557 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [isSome](./js-utils.issome.md)
## isSome() function
2021-08-08 20:11:23 +00:00
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)<!-- -->&lt;T&gt; | |
<b>Returns:</b>
val is T