bind-all

Create singletons from objects.

npm install bind-all
4 downloads in the last week
33 downloads in the last month

bind-all

Create singletons from objects.

Installation

$ component install segmentio/bind-all
$ npm install bind-all

API

function User () {
  this.x = 4;
}

User.prototype.y = function () {
  return this.x;
};

var user = bindAll(new User());

user.y.apply(this); // 4

License

MIT

npm loves you