bind-all
Create singletons from objects.
Installation
$ npm install bind-allAPI
function User() {
this.x = 4;
}
User.prototype.y = function y() {
return this.x;
};
var user = bindAll(new User());
user.y.apply(this); // 4| ★ wanayoo — archive 1999 https://github.com/segmentio/bind-all | Nouvelle recherche | Portail wanayoo |
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
| Failed to load latest commit information. | |||
|
|
lib | ||
|
|
test | ||
|
|
.eslintrc | ||
|
|
.gitignore | ||
|
|
HISTORY.md | ||
|
|
LICENSE | ||
|
|
Makefile | ||
|
|
README.md | ||
|
|
circle.yml | ||
|
|
karma.conf.ci.js | ||
|
|
karma.conf.js | ||
|
|
package.json | ||