import { O } from "https://deno.land/x/ahh@v0.9.1/src/option/mod.ts";
Returns the contained Some
value or the provided default
.
Examples
import { O, None } from "./mod.ts";
console.log(O.unwrapOr(1, 5)); // 1
console.log(O.unwrapOr(None, 5)); // 5