is-generator-function-name 1.0.0 • Public • Published 10 years ago 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 ' } )
isGeneratorFunctionName ( function ( ) { } )
isGeneratorFunctionName ( function GeneratorFunction ( ) { } )
isGeneratorFunctionName ( function * ( ) { } )
isGeneratorFunctionName ( function * ( ) { yield 42 } )
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.
Versions Version Downloads (Last 7 Days) Tag 1.0.0 363 latest
Version History Version Downloads (Last 7 Days) Published 1.0.0 363 10 years ago 0.0.0 0 10 years ago
Package Sidebar Install npm i is-generator-function-name
Downloads Weekly Downloads