Variables
isNone
const
isNone: <T
>(option
) =>option is None
Checks whether the given Option contains no value.
This function acts as a type guard, ensuring the value is a None.
Type Parameters
Type Parameter | Description |
---|---|
T | The type of the expected value. |
Parameters
Returns
option is None
true
if the option is a None, false
otherwise.
Example
Checking for None
values.