Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

is-generator-fn

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Issues
File Explorer

Advanced tools

is-generator-fn

Check if something is a generator function

    3.0.0latest

Version published
Maintainers
1
Weekly downloads
14,837,544
decreased by-3.46%

Weekly downloads

Changelog

Source

Breaking

  • Require Node.js 12.20 d1cb1b8
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/is-generator-fn/compare/v2.1.0...v3.0.0

Readme

Source

is-generator-fn

Check if something is a generator function

Install

$ npm install is-generator-fn

Usage

import isGeneratorFunction from 'is-generator-fn'; isGeneratorFunction(function * () {}); //=> true isGeneratorFunction(function () {}); //=> false
  • is - Type check values

Keywords

FAQs

What is is-generator-fn?

Check if something is a generator function

Is is-generator-fn popular?

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.

Is is-generator-fn well maintained?

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.

Last updated on 11 Aug 2021
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