github-actions[bot] a0f00e5017
Add node modules and new code for release (#168)
Co-authored-by: OliverMKing <OliverMKing@users.noreply.github.com>
2022-02-02 10:11:19 -05: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