bind-all-component

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bind-all-component

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • segmentio