ken_nogi/NodeJS/Care7_old/node_modules/is-generator-function
Kenichiro NOGI 51a95c5e21 NodeJS
2025-07-10 10:12:37 +09:00
..
test NodeJS 2025-07-10 10:12:37 +09:00
.eslintignore NodeJS 2025-07-10 10:12:37 +09:00
.eslintrc NodeJS 2025-07-10 10:12:37 +09:00
.nvmrc NodeJS 2025-07-10 10:12:37 +09:00
.nycrc NodeJS 2025-07-10 10:12:37 +09:00
CHANGELOG.md NodeJS 2025-07-10 10:12:37 +09:00
index.js NodeJS 2025-07-10 10:12:37 +09:00
LICENSE NodeJS 2025-07-10 10:12:37 +09:00
package.json NodeJS 2025-07-10 10:12:37 +09:00
README.md NodeJS 2025-07-10 10:12:37 +09:00

is-generator-function Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this a native generator function?

Example

var isGeneratorFunction = require('is-generator-function');
assert(!isGeneratorFunction(function () {}));
assert(!isGeneratorFunction(null));
assert(isGeneratorFunction(function* () { yield 42; return Infinity; }));

Tests

Simply clone the repo, npm install, and run npm test