Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

is-generator-function

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Issues
File Explorer

Advanced tools

is-generator-function

Determine if a function is a native generator function.

    1.0.10latest

Version published
Maintainers
1
Weekly downloads
8,544,463
decreased by-9.65%

Weekly downloads

Changelog

Source

v1.0.10 - 2021-08-05

Commits

  • [Dev Deps] update eslint, auto-changelog, core-js, tape 63cd935
  • [Fix] use has-tostringtag to behave correctly in the presence of symbol shams 8c3fe76
  • [Dev Deps] unpin core-js v3 ebf2885

Readme

Source

is-generator-function Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this a native generator function?

Example

var isGeneratorFunction = require('is-generator-function'); assert(!isGeneratorFunction(function () {})); assert(!isGeneratorFunction(null)); assert(isGeneratorFunction(function* () { yield 42; return Infinity; }));

Tests

Simply clone the repo, npm install, and run npm test

Keywords

FAQs

What is is-generator-function?

Determine if a function is a native generator function.

Is is-generator-function popular?

The npm package is-generator-function receives a total of 8,100,213 weekly downloads. As such, is-generator-function popularity was classified as popular.

Is is-generator-function well maintained?

We found that is-generator-function 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.

Last updated on 06 Aug 2021

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.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc