Mbind
Bun

method

util.CustomPromisifyLegacy.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.

@param thisArg

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

@param argArray

A list of arguments to be passed to the new function.