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.

Parameters

obj

any

The object on which to check for the method.

methodName

string

The name of the method to check for and invoke.

methodArgs

any[]

The arguments to pass to the method.

Returns

void