rosh 459aece669 first commit 5 years ago
..
index.d.ts first commit 5 years ago
index.js first commit 5 years ago
license first commit 5 years ago
package.json first commit 5 years ago
readme.md first commit 5 years ago

readme.md

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