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

x/easy_std/src/fn.ts>invoke

Generic Deno standard library, focused on ease of use | 通用 Deno 标准库,专注于易用性
Go to Latest
function invoke
import { invoke } from "https://deno.land/x/easy_std@v0.7.0/src/fn.ts";

Calling function parameters directly

Examples

Example 1

import { invoke } from "https://deno.land/x/easy_std@version/src/fn.ts"

const fns = [() => 1, () => 2]

fns.map(invoke) // [1, 2]

Parameters

fn: () => T