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
check if the value is a generator function. pulled from co.
npm install is-gen-fn
isGenFn(function *() { ... }) // true
isGenFn(function () { ... }) // false
MIT
npm i is-gen-fn
6,337
0.0.2
MIT
886 B
3