line_push/node_modules/is-generator-function
2022-07-17 13:16:16 +08:00
..
test add file 2022-07-17 13:16:16 +08:00
.editorconfig add file 2022-07-17 13:16:16 +08:00
.eslintrc add file 2022-07-17 13:16:16 +08:00
.jscs.json add file 2022-07-17 13:16:16 +08:00
.nvmrc add file 2022-07-17 13:16:16 +08:00
.travis.yml add file 2022-07-17 13:16:16 +08:00
CHANGELOG.md add file 2022-07-17 13:16:16 +08:00
index.js add file 2022-07-17 13:16:16 +08:00
LICENSE add file 2022-07-17 13:16:16 +08:00
Makefile add file 2022-07-17 13:16:16 +08:00
package.json add file 2022-07-17 13:16:16 +08:00
README.md add file 2022-07-17 13:16:16 +08: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