helpyourneighbour/backend/node_modules/is-generator-fn
2026-03-19 23:10:50 +00:00
..
index.d.ts feat(auth): implement user authentication system 2026-03-19 23:10:50 +00:00
index.js feat(auth): implement user authentication system 2026-03-19 23:10:50 +00:00
license feat(auth): implement user authentication system 2026-03-19 23:10:50 +00:00
package.json feat(auth): implement user authentication system 2026-03-19 23:10:50 +00:00
readme.md feat(auth): implement user authentication system 2026-03-19 23:10:50 +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