mirror of
https://github.com/actions/stale.git
synced 2026-07-03 22:32:43 +08:00
0649bd8119
* Bumping actions/github to 2.2.0 for GHES * Husky commit correct node modules
is-generator-fn 
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
Related
- is - Type check values
License
MIT © Sindre Sorhus