koa-plugins/node_modules/is-generator-function
2020-03-01 17:38:34 +01:00
..
test First commit 2020-03-01 17:38:34 +01:00
.editorconfig First commit 2020-03-01 17:38:34 +01:00
.eslintrc First commit 2020-03-01 17:38:34 +01:00
.jscs.json First commit 2020-03-01 17:38:34 +01:00
.nvmrc First commit 2020-03-01 17:38:34 +01:00
.travis.yml First commit 2020-03-01 17:38:34 +01:00
CHANGELOG.md First commit 2020-03-01 17:38:34 +01:00
index.js First commit 2020-03-01 17:38:34 +01:00
LICENSE First commit 2020-03-01 17:38:34 +01:00
Makefile First commit 2020-03-01 17:38:34 +01:00
package.json First commit 2020-03-01 17:38:34 +01:00
README.md First commit 2020-03-01 17:38:34 +01:00

is-generator-function Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

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