happy-rusty • Docs
happy-rusty / isOption
function isOption<T>(o): o is Option<T>
Checks if a value is an Option
.
Type Parameter | Description |
---|---|
T |
The expected type of the value contained within the Option . |
Parameter | Type | Description |
---|---|---|
o |
unknown |
The value to be checked as an Option . |
o is Option<T>
true
if the value is an Option
, otherwise false
.