2021-07-10 21:54:41 +00:00
|
|
|
<!-- 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
|
|
|
|
|
2021-08-08 20:11:23 +00:00
|
|
|
Typeguard to check if a `Maybe` is `Some` value (not `None`<!-- -->).
|
|
|
|
|
2021-07-10 21:54:41 +00:00
|
|
|
<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
|
|
|
|
|