Binds a context to a given function within that context.

This function is valid in v2.8.0 to v2.23.0. This function has been downloaded 54 times.


{Object} context
Context object containing the function to be called.
{string} name
Name of the function to call within the context.


Function that when called will execute the function with the given name under the given context.

Requiring Functions

This function is directly required by the following functions:

  • has()
    Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.
  • slice()
    Slice does not modify the original array, but instead returns a shallow copy of elements from the original array.