Checks whether opt is None.
opt
None
The optional value.
The proof that opt is a None.
import { some, none, isNone } from "./option.ts";import { assertEquals } from "../deps.ts";assertEquals(isNone(some(2)), false);assertEquals(isNone(none()), true); Copy
import { some, none, isNone } from "./option.ts";import { assertEquals } from "../deps.ts";assertEquals(isNone(some(2)), false);assertEquals(isNone(none()), true);
Generated using TypeDoc
Checks whether
opt
isNone
.