is-generator-fn
Advanced tools
Weekly downloads
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
FAQs
Check if something is a generator function
The npm package is-generator-fn receives a total of 17,697,970 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 because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.