setup-php/node_modules/is-generator-fn/readme.md
Shivam Mathur 8f9786b73f init
2019-09-06 05:17:43 +05:30

645 B

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