Calls a function whether it be a global prototype function or a YourJS function or a custom bindable.

This function is valid in v2.19.0 to v2.24.2. This function has been downloaded 23 times.


{Function|string} fn
If a function is supplied it will be called. If a string, it can refer to a prototype function by using either the "Array.prototype.slice" ("Prototype_Name.prototype.function_name") format, the "Array#slice" ("Prototype_Name#function_name") format or the "#slice" ("#function_name" for objThis) format. If not in the previous format but is a string it must be the string name of a function in the YourJS object.
{*=} objThis Optional, Default:global
If fn is a function or is a string referring to a prototypal function, this will be the value passed as the this object to fn.
{…*=} argX Optional
Arguments to pass to fn.


Return value of calling fn with the specified arguments and using the specified context object.

Required Function

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

  • slice()
    Slice does not modify the original array, but instead returns a shallow copy of elements from the original array.

Requiring Function

This function is directly required by the following function:

  • calls()
    Makes multiple calls using the YourJS call() function.