source: frontend/node_modules/is-generator-fn/readme.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 645 bytes
Line 
1# is-generator-fn [![Build Status](https://travis-ci.org/sindresorhus/is-generator-fn.svg?branch=master)](https://travis-ci.org/sindresorhus/is-generator-fn)
2
3> Check if something is a [generator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)
4
5
6## Install
7
8```
9$ npm install is-generator-fn
10```
11
12
13## Usage
14
15```js
16const isGeneratorFn = require('is-generator-fn');
17
18isGeneratorFn(function * () {});
19//=> true
20
21isGeneratorFn(function () {});
22//=> false
23```
24
25
26## Related
27
28- [is](https://github.com/sindresorhus/is) - Type check values
29
30
31## License
32
33MIT © [Sindre Sorhus](https://sindresorhus.com)
Note: See TracBrowser for help on using the repository browser.