genomatic
v1.0.0
Published
Utility methods for working with Generator functions, such as bind(), is(), etc
Downloads
691
Maintainers
Readme
genomatic
Utility methods for working with Generator functions, such as bind(), is(), etc.
## Features
- Browser-friendly
- No other dependencies
Installation
This package requires Node 4 or above
$ npm install genomaticAPI
genomatic.isGenFn(fn)
- Returns
trueiffnis a generator function,falseotherwise.
- Returns
genomatic.bind(fn, ctx)
- Bind
fntoctx, and return the bound function. - If
fnis a generator function the a generator function is returned. - If
fnis not a generator function then a non-generator function is returned.
- Bind
Building
To run the tests:
$ npm install
$ npm testContributing
Contributions are welcome! Please see CONTRIBUTING.md.
License
MIT - see LICENSE.md

