Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

execFunc

import { execFunc } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";

execute a function

@example
// returns "a(2)"
execFunc("a", 2)
@example
// returns "a`hello`"
execFunc("a", "hello", { isTemplateLiteral: true })
@example
// returns "((x,y)=>x-y)(1,2)"
execFunc(defineFunc({ args: ["x", "y"], body: sub("x", "y"), safe: false }), [1, 2])
function execFunc(
name: string,
args?: Primitive | Primitive[],
{ isTemplateLiteral }?,
): string;
§
execFunc(name: string, args?: Primitive | Primitive[], { isTemplateLiteral }?): string
[src]

§Parameters

§
name: string
[src]
§
args?: Primitive | Primitive[] optional
[src]
§
{ isTemplateLiteral }? optional
[src]

§Return Type

§
string
[src]