challenge-algorithms-v2.0-s.../node_modules/is-generator-fn
2022-10-27 15:51:35 -03:00
..
index.d.ts feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03:00
index.js feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03:00
license feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03:00
package.json feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03:00
readme.md feat: Resolve o exercício 01-greeting 2022-10-27 15:51:35 -03: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