Novel Preposterous Mockery

npm

Need private packages and team management tools?Check out npm Orgs. »

is-generator-fn

2.1.0 • Public • Published

is-generator-fn Build Status

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

install

npm i is-generator-fn

Downloadsweekly downloads

4,424,547

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability