callBind
Calls the supplied function and binds the specified context.
Signature
callBind<T>(fn: (...arguments: any[]) => T | void, context: {}, ...arguments: any[]): T | undefined
Parameters
Name | Type | Optional | Description |
---|---|---|---|
fn | (...arguments: any[]) => T | void | No | Specifies the function to execute. |
context | {} | No | Context to bind to. |
arguments | any[] | Yes | Optional arguments which should be passed to the callee. |
Return value
Returns undefined
if the call fails or the return value of the function which is executed if the call succeeded.