Unbinds a value from a function (such as a prototypal function) and creates a wrapper function that when called will use the 1st argument as the bound value.

This function is valid in v2.0.0 to v2.24.2. This function has been downloaded 40 times.


{Function} fn
Function to be unbound.
{Array=} opt_args Optional, Default:[]
Array of arguments to precede any additionally arguments passed to the returned wrapper function.


A wrapper function which when called will bound the first argument passed to it to fn and then pass the rest of the arguments in after any specified in opt_args.

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.