wallet-core/node_modules/is-generator-fn
2017-05-28 00:40:43 +02:00
..
index.js add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
license add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
package.json add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
readme.md add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00

is-generator-fn Build Status

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