only-changed-jest-watch-plugin
Version:
Jest watch plugin for running either only the modified test (for TDD), or tests of dependant modules
29 lines (16 loc) • 574 B
Markdown
is-generator-fn [](https://travis-ci.org/sindresorhus/is-generator-fn)
Check if something is a [generator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)
# Install
```
npm install --save is-generator-fn
```
# Usage
```js
const isGeneratorFn = require('is-generator-fn');
isGeneratorFn(function * () {});
//=> true
isGeneratorFn(function () {});
//=> false
```
# License
MIT © [Sindre Sorhus](http://sindresorhus.com)