Negotiable Paleobotanist Missions
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    bind-allpublic

    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

    Keywords

    install

    npm i bind-all

    Downloadsweekly downloads

    6,584

    version

    1.0.0

    license

    SEE LICENSE IN LICENSE

    repository

    githubgithub

    last publish

    collaborators

    • avatar