is-generator-fn
Advanced tools
Check if something is a generator function
Weekly downloads
Changelog
https://github.com/sindresorhus/is-generator-fn/compare/v2.1.0...v3.0.0
Readme
Check if something is a generator function
$ npm install is-generator-fn
import isGeneratorFunction from 'is-generator-fn';
isGeneratorFunction(function * () {});
//=> true
isGeneratorFunction(function () {});
//=> false
Check if something is a generator function
The npm package is-generator-fn receives a total of 14,107,327 weekly downloads. As such, is-generator-fn popularity was classified as popular.
We found that is-generator-fn demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.