Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
/ bind-all Public archive

Component for binding singletons from objects

License

Notifications You must be signed in to change notification settings

segmentio/bind-all

Repository files navigation

bind-all

CircleCI Codecov

Create singletons from objects.

Installation

$ npm install bind-all

API

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

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

var user = bindAll(new User());

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

About

Component for binding singletons from objects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •