call
Calls the supplied function.
Signature
call<T>(fn: (...arguments: any[]) => T | void, ...arguments: any[]): T | undefined
Parameters
Name | Type | Optional | Description |
---|---|---|---|
fn | (...arguments: any[]) => T | void | No | Specifies the function to execute. |
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 succeeds.