Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-gen-fn

mattmueller43.3kMIT0.0.2

determine if a function is a generator function

generator, function, fn, gen

readme

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