Package Exports
- is-generator-function-name
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-generator-function-name) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-generator-function-name

Check that given value have
GeneratorFunction
name or displayName.
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.