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

    fj-bindpublic

    fj-bind

    Build Status npm version

    Bind a context to a function FP-style

    Installation

    npm install fj-bind --save

    Usage

    var bind = require('fj-bind');
     
    var bindToMe = bind(me); // me is a object
     
    bindToMe(func1);
    bindToMe(func2);

    API

    context -> function
    

    A curried function that expects:

    • context [required] : The context to bind to a function

    • function [required]: The function which is bound to the context

    Keywords

    install

    npm i fj-bind

    Downloadsweekly downloads

    3

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar