Adds a new function to the YourJS object and to YourJSChain's prototype.

This function is valid in v2.0.0 to v2.20.0. This function has been downloaded 22 times.


{Function} fn
The function to add to the YourJS object.
{string} name
The name to give to the function under the YourJS object and under the YourJSChain's prototype.


Boolean value indicating if the function could be added.

Required Function

This function requires the following function which is included automatically:

  • chain()
    Creates a chained version of a value.