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

x/netzo/deps/@tiptap/react.ts>callOrReturn

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function callOrReturn
import { callOrReturn } from "https://deno.land/x/netzo@0.5.63/deps/@tiptap/react.ts";

Optionally calls value as a function. Otherwise it is returned directly.

Parameters

value: T

Function or any value.

optional
context: any

Optional context to bind to function.

...props: any[]

Optional props to pass to function.