Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/mod.ts>fn.tryCatch

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function fn.tryCatch
import { fn } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { tryCatch } = fn;

Type Parameters

D extends unknown[]
A

Parameters

fda: (...d: D) => A
onThrow: (e: unknown, d: D) => A

Returns

(...d: D) => A