1.0.1 • Published 9 years ago
bind-fn v1.0.1
bind-fn
Very small module to make binding functions easier.
Eg. instead of repeating the context in
var f = obj.func.bind(obj);
we can just do
var bind = require('bind-fn');
var f = bind(obj, 'func');
Very small module to make binding functions easier.
Eg. instead of repeating the context in
var f = obj.func.bind(obj);
we can just do
var bind = require('bind-fn');
var f = bind(obj, 'func');