npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

co-bind

1.0.0

@vdemedes

npmHomeRepoSnykSocket
Downloads:0
$ npm install co-bind
DailyWeeklyMonthlyYearly

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.