the-tip-top-backend/node_modules/is-generator-fn
2025-11-01 17:25:01 +01:00
..
index.d.ts Fix Jenkinsfile: force recreate + health check 2025-11-01 17:25:01 +01:00
index.js Fix Jenkinsfile: force recreate + health check 2025-11-01 17:25:01 +01:00
license Fix Jenkinsfile: force recreate + health check 2025-11-01 17:25:01 +01:00
package.json Fix Jenkinsfile: force recreate + health check 2025-11-01 17:25:01 +01:00
readme.md Fix Jenkinsfile: force recreate + health check 2025-11-01 17:25:01 +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