method Function.bind
Private
Function.bind(
this: Function,
thisArg: any,
...argArray: any[],
): any

For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.

Parameters

thisArg: any

An object to which the this keyword can refer inside the new function.

...argArray: any[]

Return Type

any