$ npm install is-es6-generator
Check that given value is Generator
npm i is-es6-generator --save
npm test
For more use-cases see the tests
var isGenerator = require('is-es6-generator')
var generator = (function * () {})()
isGenerator(null) //=> false
isGenerator(undefined) //=> false
isGenerator(25) //=> false
isGenerator('test') //=> false
isGenerator(function fn () {}) //=> false
isGenerator(function * genFn () {}) //=> false
isGenerator(generator), true)
GeneratorFunction name… more.name or user/repo exists in npm registry or in github as… morekind-of and in bonus functional api.helper-related for generating a list of links to the… morePull 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.
© 2010 - cnpmjs.org x YWFE | Home | YWFE