import { R } from "https://deno.land/x/ahh@v0.10.0/src/result/mod.ts";
Calls f
with res
, and returns the original
res
.
Examples
import { R } from "./mod.ts";
console.log(R.inspectErr(1, () => Error("nope"))); // 1
console.log(R.inspectErr(Error(), () => Error("nope"))); // Error()