login/node_modules/is-generator-fn
Rakesh Kumar 807bb60301
Update build files and add node_modules (#54)
* update build files

* add node_modules
2020-09-23 12:15:33 +05:30
..
index.d.ts Update build files and add node_modules (#54) 2020-09-23 12:15:33 +05:30
index.js Update build files and add node_modules (#54) 2020-09-23 12:15:33 +05:30
license Update build files and add node_modules (#54) 2020-09-23 12:15:33 +05:30
package.json Update build files and add node_modules (#54) 2020-09-23 12:15:33 +05:30
readme.md Update build files and add node_modules (#54) 2020-09-23 12:15:33 +05:30

is-generator-fn Build Status

Check if something is a generator function

Install

$ npm install is-generator-fn

Usage

const isGeneratorFn = require('is-generator-fn');

isGeneratorFn(function * () {});
//=> true

isGeneratorFn(function () {});
//=> false
  • is - Type check values

License

MIT © Sindre Sorhus