mixin()

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

This function is valid in v2.0.0 to v2.14.0. This function has been downloaded 48 times.

Parameters

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

Returns

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