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

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
variable tryOrDefault
import { tryOrDefault } from "https://deno.land/x/live@1.74.1/utils/object.ts";

type

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