Skip to content

checkAndInvokeMethod

checkAndInvokeMethod(obj, methodName, …methodArgs): void

Defined in: utils/bind.ts:75

Checks if a method exists on an object and, if it does, invokes it with the provided arguments.

any

The object on which to check for the method.

string

The name of the method to check for and invoke.

any[]

The arguments to pass to the method.

void