Danny McCormick c3f0a8be66 Use husky
2019-06-05 11:34:47 -04:00
..
2019-06-05 11:34:47 -04:00
2019-06-05 11:34:47 -04:00
2019-06-05 11:34:47 -04:00
2019-06-05 11:34:47 -04:00
2019-06-05 11:34:47 -04:00

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