c5fd23b54f | ||
---|---|---|
.. | ||
index.js | ||
license | ||
package.json | ||
readme.md |
readme.md
is-generator-fn
Check if something is a generator function
Install
$ npm install --save is-generator-fn
Usage
const isGeneratorFn = require('is-generator-fn');
isGeneratorFn(function * () {});
//=> true
isGeneratorFn(function () {});
//=> false
License
MIT © Sindre Sorhus