Function: isOption()
isOption<
T>(option):option is Option<T>
Type guard to check if a value is an Option.
Type Parameters
T
T extends NonNullableValue
The type of the value.
Parameters
option
unknown
The value to check.
Returns
option is Option<T>
true if the value is an Option, otherwise false.