prc b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
..
test b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
.eslintignore b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
.eslintrc b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
.nvmrc b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
.nycrc b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
CHANGELOG.md b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
LICENSE b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
README.md b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
index.js b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө
package.json b6c02717e6 Upload complete no-internet building environment. 1 жил өмнө

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