import { tryCatch } from "https://deno.land/x/rambda@9.4.1/rambda.js";
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