Function: isNone()
isNone<
T>(option):option is None
Defined in: option/guards/index.ts:41
Type guard to check if an Option is None.
Narrows the type to None.
Type Parameters
T
T
Parameters
option
Option<T>
The Option to check
Returns
option is None
True if the Option is None
Example
const opt = none()
if (isNone(opt)) {
console.log('No value present')
}