fj-bind
v1.0.0
Published
Bind a context to a function FP-style
Downloads
2
Readme
fj-bind
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 functionfunction
[required]: The function which is bound to the context