import { O } from "https://deno.land/x/ahh@v0.10.0/src/option/mod.ts";
Converts opt
into an Ok
if it is a
Some
.
Examples
import { O, None } from "./mod.ts";
console.log(O.okOr(1, Error())); // 1
console.log(O.okOr(None, Error())); // Error()