call()

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

This function is valid in v2.0.0 to v2.13.3. This function has been downloaded 39 times.

Parameters

{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.

Returns

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

Required Functions

This function requires the following functions which are included automatically:

  • slice()
    Slice does not modify the original array, but instead returns a shallow copy of elements from the original array.
  • typeOf()
    Either gets the type of a value or adds a constructor registering its custom type name.