callOf()

Gets the call() function for the specified function.

This function is valid in v2.21.0 to v2.24.3. This function has been downloaded 39 times.

Parameters

{Function|string} fn
The function or the function name for which to get the call() function.
{Object=} opt_owner Optional
If fn is a string then this will be used as the parent object to reference the actual function.
{*=} opt_objThis Optional
If given this will be the value that is always used as the this keyword by fn (the function). If not given, the first argument passed to the returned function will be referenced as the this keyword.

Returns

{Function}
If opt_objThis is not passed, a version of call() will be returned which will use the first argument as the this keyword and all subsequent parameters will be normal arguments. Otherwise a function which accepts only arguments (not the this keyword definition) will be returned.

Required Function

This function directly requires the following function which is included automatically:

  • applyOf()
    Gets the apply() function for the specified function.

Requiring Function

This function is directly required by the following function:

  • applyOf()
    Gets the apply() function for the specified function.