install-nix-action/node_modules/is-generator-fn
Domen Kožar 70742d22d9
v6
2019-11-19 17:50:30 +01:00
..
index.d.ts v6 2019-11-19 17:50:30 +01:00
index.js v6 2019-11-19 17:50:30 +01:00
license v6 2019-11-19 17:50:30 +01:00
package.json v6 2019-11-19 17:50:30 +01:00
readme.md v6 2019-11-19 17:50:30 +01: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