infracloud/scripts/node_modules/is-generator-function
2026-02-28 09:07:22 -03:00
..
test docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
.eslintrc docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
.nvmrc docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
.nycrc docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
CHANGELOG.md docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
index.d.ts docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
index.js docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
LICENSE docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
package.json docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
README.md docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03:00
tsconfig.json docs: update infrastructure docs, connections and services inventory 2026-02-28 09:07:22 -03: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