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 | The name of the function. |
Return value
Type | Description |
---|---|
A reference to the desired function, or undefined in the event of an error if the function does not exist. |
Available from 1.8 |