hz-zhhq-web/node_modules/is-generator-function
zzyuan 03ac614884 前端提交3 2025-02-25 13:45:28 +08:00
..
test 前端提交3 2025-02-25 13:45:28 +08:00
.eslintrc 前端提交3 2025-02-25 13:45:28 +08:00
.nvmrc 前端提交3 2025-02-25 13:45:28 +08:00
.nycrc 前端提交3 2025-02-25 13:45:28 +08:00
CHANGELOG.md 前端提交3 2025-02-25 13:45:28 +08:00
LICENSE 前端提交3 2025-02-25 13:45:28 +08:00
README.md 前端提交3 2025-02-25 13:45:28 +08:00
index.d.ts 前端提交3 2025-02-25 13:45:28 +08:00
index.js 前端提交3 2025-02-25 13:45:28 +08:00
package.json 前端提交3 2025-02-25 13:45:28 +08:00
tsconfig.json 前端提交3 2025-02-25 13:45:28 +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