getFunction

[ Function ]

function getFunction(
    name: string
):((...args: any[]) => any) | undefined;

Returns a reference to a function based on the function name.

Parameter

Name

Type

Description

name

string

The name of the function.

Return value

Type

Description

((...args: any[]) => any), undefined

A reference to the desired function, or undefined in the event of an error if the function does not exist.

getFunction 1:

Available from 1.8