0.0.2 • Published 2 years ago

is-gen-fn v0.0.2

Weekly downloads
5,827
License
MIT
Repository
-
Last release
2 years ago

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