Name Last Update
..
test Loading commit data...
.eslintrc Loading commit data...
.jscs.json Loading commit data...
.npmignore Loading commit data...
.nvmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
index.js Loading commit data...
package.json Loading commit data...
testling.html Loading commit data...

#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