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