co-bind
v1.0.0
Published
Function#bind for generator functions
Downloads
12
Readme
co-bind
Function#bind for generator functions. Supports all the same features as native .bind().
Installation
$ npm install co-bind --save
Usage
const bind = require('co-bind');
function * test () {
}
let newTest = bind(test, context, 'hello', 'world'); // bind (fn, context[, arg1[, arg2[, ...]]])
Tests
$ npm test
License
WTFPL.