Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
nitowa 1dae68b1c7 init vor 2 Jahren
..
test init vor 2 Jahren
.eslintignore init vor 2 Jahren
.eslintrc init vor 2 Jahren
.nvmrc init vor 2 Jahren
.nycrc init vor 2 Jahren
CHANGELOG.md init vor 2 Jahren
LICENSE init vor 2 Jahren
README.md init vor 2 Jahren
index.js init vor 2 Jahren
package.json init vor 2 Jahren

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