HckApm/node_modules/is-generator-function
minicx 99e5f883a3 second commit 2023-12-23 14:56:27 +03:00
..
test second commit 2023-12-23 14:56:27 +03:00
.eslintignore second commit 2023-12-23 14:56:27 +03:00
.eslintrc second commit 2023-12-23 14:56:27 +03:00
.nvmrc second commit 2023-12-23 14:56:27 +03:00
.nycrc second commit 2023-12-23 14:56:27 +03:00
CHANGELOG.md second commit 2023-12-23 14:56:27 +03:00
LICENSE second commit 2023-12-23 14:56:27 +03:00
README.md second commit 2023-12-23 14:56:27 +03:00
index.js second commit 2023-12-23 14:56:27 +03:00
package.json second commit 2023-12-23 14:56:27 +03:00

README.md

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