import { tryCatch } from "https://deno.land/x/rambda@v9.1.0/mod.ts";
It returns function that runs fn
in try/catch
block. If there was an error, then fallback
is used to return the result. Note that fn
can be value or asynchronous/synchronous function(unlike Ramda
where fallback can only be a synchronous function).
Parameters
fallback: T