method Function.apply
Private
Function.apply(
this: Function,
thisArg: any,
argArray?: any,
): any

Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.

Parameters

thisArg: any

The object to be used as the this object.

optional
argArray: any

A set of arguments to be passed to the function.

Return Type

any