選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
nitowa 1dae68b1c7 init 2年前
..
test init 2年前
.eslintignore init 2年前
.eslintrc init 2年前
.nvmrc init 2年前
.nycrc init 2年前
CHANGELOG.md init 2年前
LICENSE init 2年前
README.md init 2年前
index.js init 2年前
package.json init 2年前

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