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

x/blocks/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/blocks@0.36.7/utils/object.ts";

type

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