ft_transcendence/pong/node_modules/is-generator-fn
2023-05-02 19:15:50 +02:00
..
index.d.ts new sadjigui 2023-05-02 19:15:50 +02:00
index.js new sadjigui 2023-05-02 19:15:50 +02:00
license new sadjigui 2023-05-02 19:15:50 +02:00
package.json new sadjigui 2023-05-02 19:15:50 +02:00
readme.md new sadjigui 2023-05-02 19:15:50 +02: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