RevelaOS/node_modules/is-generator-function
2023-10-15 23:53:41 +01:00
..
test [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
.eslintignore [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
.eslintrc [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
.nvmrc [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
.nycrc [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
CHANGELOG.md [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
index.js [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
LICENSE [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
package.json [🎉] Initial Commit 2023-10-15 23:53:41 +01:00
README.md [🎉] Initial Commit 2023-10-15 23:53:41 +01: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