bind-all-component

Component for creating singletons from objects

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

bind-all

Component for creating singletons from objects

Installation

$ component install segmentio/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