src code

instance method Function#bind

Function#bind(object[, args...]) → Function
  • object (Object) – The object to bind to.

Wraps the function in another, locking its execution scope to an object specified by object.