is-gen-fn

v0.0.1
determine if a function is a generator function
generator function fn gen

is-gen-fn

check if the value is a generator function. pulled from co.

Installation

npm install is-gen-fn

Usage

isGenFn(function *() { ... }) // true
isGenFn(function () { ... }) // false

License

MIT

Metadata

  • MIT
  • Whatever
  • Matthew Mueller
  • released 4/3/2014

Downloads

Maintainers