function isNone
Since 0.1.0
isNone<T>(option: Option<T>): option is None

Type guard: narrows an Option to None.

Type Parameters

The contained value type

Parameters

option: Option<T>

The option to inspect

Return Type

option is None

true if no value is present

Usage

import { isNone } from "common/src/index.ts";