import { tryCatch } from "https://dotland.deno.dev/x/rambda@v9.2.0/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