wallet-core/node_modules/is-generator-fn/readme.md

29 lines
574 B
Markdown
Raw Normal View History

2017-05-28 00:38:50 +02:00
# is-generator-fn [![Build Status](https://travis-ci.org/sindresorhus/is-generator-fn.svg?branch=master)](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)