github-pages-deploy-action/node_modules/is-generator-fn
2020-03-31 08:57:48 -04:00
..
index.d.ts 3.4.3 2020-03-31 08:42:07 -04:00
index.js 3.4.3 2020-03-31 08:42:07 -04:00
license 3.4.3 2020-03-31 08:42:07 -04:00
package.json 3.4.3 Dependencies 2020-03-31 08:57:48 -04:00
readme.md 3.4.3 2020-03-31 08:42:07 -04: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