Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-generator-function-name

tunnckocore1.1kMIT1.0.0

Check that given value have GeneratorFunction name or displayName.

check, gen, next, es2015, es6, es7, function, generator, generators, generator-function, generatorfunction, has, is-generator, is-generator-function, validate, value

readme

is-generator-function-name npmjs.com The MIT License

Check that given value have GeneratorFunction name or displayName.

code climate standard code style travis build status coverage status dependency status

Install

npm i is-generator-function-name --save
npm test

Usage

For more use-cases see the tests

var isGeneratorFunctionName = require('is-generator-function-name')

isGeneratorFunctionName({name: 'GeneratorFunction'})
//=> false

isGeneratorFunctionName(function () {})
//=> false

isGeneratorFunctionName(function GeneratorFunction () {})
//=> false

isGeneratorFunctionName(function * () {})
//=> true

isGeneratorFunctionName(function * () { yield 42 })
//=> true

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github

changelog

1.0.0 - 2015-05-26

  • Release v1.0.0 / npm@v1.0.0
  • run keywords(1)
  • implement

0.0.0 - 2015-05-26

  • first commits