@f/is-generator

Check if generator.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Dec 28, 2015Dec 2, 2015Minified + gzip package size for @f/is-generator in KB

Readme

is-generator

Build status Git tag NPM version Code style

Check if generator.

Installation

$ npm install @f/is-generator

Usage

var isGenerator = require('@f/is-generator')

isGenerator(function * () {
  yield 1
}) // => true

API

isGenerator(obj)

  • obj - object to test

Returns: boolean

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.