The value to check.
Whether x
is contained.
import { contains, some, none } from "./option.ts";
import { assertEquals } from "../deps.ts";
const hasTwo = contains(2);
assertEquals(hasTwo(some(2)), true);
assertEquals(hasTwo(some(3)), false);
assertEquals(hasTwo(none()), false);
Generated using TypeDoc
Checks whether the optional
opt
containsx
value.