bns_zhgd_web/node_modules/is-generator-function
haozq 65e8192a56 first commit 2025-04-02 10:01:21 +08:00
..
test first commit 2025-04-02 10:01:21 +08:00
.eslintrc first commit 2025-04-02 10:01:21 +08:00
.nvmrc first commit 2025-04-02 10:01:21 +08:00
.nycrc first commit 2025-04-02 10:01:21 +08:00
CHANGELOG.md first commit 2025-04-02 10:01:21 +08:00
LICENSE first commit 2025-04-02 10:01:21 +08:00
README.md first commit 2025-04-02 10:01:21 +08:00
index.d.ts first commit 2025-04-02 10:01:21 +08:00
index.js first commit 2025-04-02 10:01:21 +08:00
package.json first commit 2025-04-02 10:01:21 +08:00
tsconfig.json first commit 2025-04-02 10:01:21 +08: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