• Binds methods of an object to the object itself, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided all enumerable function properties, own and inherited, of object are bound.

    Note: This method does not set the "length" property of bound functions.

    Type Parameters

    • T

    Parameters

    • object: T

      The object to bind and assign the bound methods to.

    • Rest...methodNames: Many<string>[]

      The object method names to bind, specified as individual method names or arrays of method names.

    Returns T

    Returns object.