package
Bind all methods to an object.
npm install bind-all
GitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Latest published May 19, 2016
latest
Registry package owners.
segment-admin
tools+npm@segment.com
Create singletons from objects.
$ npm install bind-all
function User() { this.x = 4; } User.prototype.y = function y() { return this.x; }; var user = bindAll(new User()); user.y.apply(this); // 4
1 direct dependencies.
^1.0.0
1.0.0