caoge c760052ff9 机车状态修改 | 8 months ago | |
---|---|---|
.. | ||
index.d.ts | 8 months ago | |
index.js | 8 months ago | |
license | 8 months ago | |
package.json | 8 months ago | |
readme.md | 8 months ago |
Check if something is a generator function
$ npm install is-generator-fn
const isGeneratorFn = require('is-generator-fn');
isGeneratorFn(function * () {});
//=> true
isGeneratorFn(function () {});
//=> false
MIT © Sindre Sorhus