is-generator-fn

WebJar for is-generator-fn

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-generator-fn
Last Version

Last Version

2.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-generator-fn
WebJar for is-generator-fn
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/is-generator-fn

Download is-generator-fn

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-generator-fn/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-generator-fn</artifactId>
    <version>2.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-generator-fn/
implementation 'org.webjars.npm:is-generator-fn:2.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/is-generator-fn/
implementation ("org.webjars.npm:is-generator-fn:2.1.0")
'org.webjars.npm:is-generator-fn:jar:2.1.0'
<dependency org="org.webjars.npm" name="is-generator-fn" rev="2.1.0">
  <artifact name="is-generator-fn" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-generator-fn', version='2.1.0')
)
libraryDependencies += "org.webjars.npm" % "is-generator-fn" % "2.1.0"
[org.webjars.npm/is-generator-fn "2.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

is-generator-fn

Check if something is a generator function

Install

$ npm install is-generator-fn

Usage

const isGeneratorFn = require('is-generator-fn');

isGeneratorFn(function * () {});
//=> true

isGeneratorFn(function () {});
//=> false

Related

  • is - Type check values

License

MIT © Sindre Sorhus

Versions

Version
2.1.0