Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/live/utils/object.ts>tryOrDefault

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
variable tryOrDefault
import { tryOrDefault } from "https://deno.land/x/live@1.61.5/utils/object.ts";

type

<R>(fn: () => R, defaultValue: R) => unknown