/is-gen-fn

check if the value is a generator function

Primary LanguageJavaScript

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