github-pages-deploy-action/node_modules/is-generator-fn
2019-11-19 07:48:29 -05:00
..
index.d.ts Dependencies 2019-11-19 07:48:29 -05:00
index.js Dependencies 2019-11-19 07:48:29 -05:00
license Dependencies 2019-11-19 07:48:29 -05:00
package.json Dependencies 2019-11-19 07:48:29 -05:00
readme.md Dependencies 2019-11-19 07:48:29 -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