caoge c760052ff9 机车状态修改 | 8 mesi fa | |
---|---|---|
.. | ||
index.d.ts | 8 mesi fa | |
index.js | 8 mesi fa | |
license | 8 mesi fa | |
package.json | 8 mesi fa | |
readme.md | 8 mesi fa |
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