bind
Function binding utility.
Installation
$ component install component/bind
API
bind(obj, fn)
should bind the function to the given object.
var tobi = name: 'tobi' ; { return thisname;} var fn = ;should;
bind(obj, fn, ...)
should curry the remaining arguments.
{ return a + b;} 1 2should;2should;should;
bind(obj, name)
should bind the method of the given name.
var tobi = name: 'tobi' ; tobi { return thisname;}; var fn = ;should;
License
MIT