iching-broker-level3/node_modules/is-generator-fn
2025-03-31 14:27:20 +02:00
..
index.d.ts unit tests part 3 2025-03-31 14:27:20 +02:00
index.js unit tests part 3 2025-03-31 14:27:20 +02:00
license unit tests part 3 2025-03-31 14:27:20 +02:00
package.json unit tests part 3 2025-03-31 14:27:20 +02:00
readme.md unit tests part 3 2025-03-31 14:27:20 +02: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