XuelesszzZ 94af2b8e7b 6-30-5 | 1 gadu atpakaļ | |
---|---|---|
.. | ||
index.d.ts | 1 gadu atpakaļ | |
index.js | 1 gadu atpakaļ | |
license | 1 gadu atpakaļ | |
package.json | 1 gadu atpakaļ | |
readme.md | 1 gadu atpakaļ |
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