uni-ticket-system/node_modules/is-generator-fn
2023-12-05 10:11:10 +08:00
..
index.d.ts submit 2023-12-05 10:11:10 +08:00
index.js submit 2023-12-05 10:11:10 +08:00
license submit 2023-12-05 10:11:10 +08:00
package.json submit 2023-12-05 10:11:10 +08:00
readme.md submit 2023-12-05 10:11:10 +08: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