Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
nitowa 1dae68b1c7 init před 2 roky
..
test init před 2 roky
.eslintignore init před 2 roky
.eslintrc init před 2 roky
.nvmrc init před 2 roky
.nycrc init před 2 roky
CHANGELOG.md init před 2 roky
LICENSE init před 2 roky
README.md init před 2 roky
index.js init před 2 roky
package.json init před 2 roky

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