Home

Awesome

is-es6-generator npmjs.com The MIT License

Check that given value is Generator

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

Install

npm i is-es6-generator --save
npm test

Usage

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)

See also

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