github-pages-deploy-action/node_modules/is-generator-fn
2020-03-21 17:13:25 -04:00
..
index.d.ts Dependencies Required 2020-01-28 00:07:56 -05:00
index.js Dependencies Required 2020-01-28 00:07:56 -05:00
license Dependencies Required 2020-01-28 00:07:56 -05:00
package.json Release 2020-03-21 17:13:25 -04:00
readme.md Dependencies Required 2020-01-28 00:07:56 -05:00

is-generator-fn Build Status

Check if something is a generator function

Install

$ npm install is-generator-fn

Usage

const isGeneratorFn = require('is-generator-fn');

isGeneratorFn(function * () {});
//=> true

isGeneratorFn(function () {});
//=> false
  • is - Type check values

License

MIT © Sindre Sorhus