Irina Glushko 2389e7160b HW1 done | 3 anni fa | |
---|---|---|
.. | ||
index.d.ts | 3 anni fa | |
index.js | 3 anni fa | |
license | 3 anni fa | |
package.json | 3 anni fa | |
readme.md | 3 anni 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