helpyourneighbour/node_modules/is-generator-fn
BibaBot c294e2e9ae
Some checks are pending
Docker Test / test (push) Waiting to run
Add unit tests for role middleware
2026-03-17 07:07:36 +00:00
..
index.d.ts Add unit tests for role middleware 2026-03-17 07:07:36 +00:00
index.js Add unit tests for role middleware 2026-03-17 07:07:36 +00:00
license Add unit tests for role middleware 2026-03-17 07:07:36 +00:00
package.json Add unit tests for role middleware 2026-03-17 07:07:36 +00:00
readme.md Add unit tests for role middleware 2026-03-17 07:07:36 +00: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