erp-mecanicas-diesel-backend/node_modules/is-generator-fn
2026-01-04 06:41:28 -06:00
..
index.d.ts Initial commit - erp-mecanicas-diesel-backend 2026-01-04 06:41:28 -06:00
index.js Initial commit - erp-mecanicas-diesel-backend 2026-01-04 06:41:28 -06:00
license Initial commit - erp-mecanicas-diesel-backend 2026-01-04 06:41:28 -06:00
package.json Initial commit - erp-mecanicas-diesel-backend 2026-01-04 06:41:28 -06:00
README.md Initial commit - erp-mecanicas-diesel-backend 2026-01-04 06:41:28 -06: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