The result to be checked.
Whether the result is an Ok
.
import { err, isOk, ok } from "./result.ts";
import { assertEquals } from "../deps.ts";
assertEquals(isOk(ok(-3)), true);
assertEquals(isOk(err("Some error message")), false);
Generated using TypeDoc
Checks whether the result is an
Ok
.