setup-kubectl/node_modules/is-generator-fn
github-actions[bot] 7ad2aa66bb
Add node modules and new code for release (#39)
Co-authored-by: tbarnes94 <tbarnes94@users.noreply.github.com>
2022-01-05 11:26:06 -05:00
..
index.d.ts Add node modules and new code for release (#39) 2022-01-05 11:26:06 -05:00
index.js Add node modules and new code for release (#39) 2022-01-05 11:26:06 -05:00
license Add node modules and new code for release (#39) 2022-01-05 11:26:06 -05:00
package.json Add node modules and new code for release (#39) 2022-01-05 11:26:06 -05:00
readme.md Add node modules and new code for release (#39) 2022-01-05 11:26:06 -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