Check if something is a generator function
MIT License
Check if something is a generator function
$ npm install is-generator-fn
import isGeneratorFunction from 'is-generator-fn';
isGeneratorFunction(function * () {});
//=> true
isGeneratorFunction(function () {});
//=> false