|
|
há 4 anos atrás | |
|---|---|---|
| .. | ||
| test | há 4 anos atrás | |
| .editorconfig | há 4 anos atrás | |
| .eslintrc | há 4 anos atrás | |
| .jscs.json | há 4 anos atrás | |
| .nvmrc | há 4 anos atrás | |
| .travis.yml | há 4 anos atrás | |
| CHANGELOG.md | há 4 anos atrás | |
| LICENSE | há 4 anos atrás | |
| Makefile | há 4 anos atrás | |
| README.md | há 4 anos atrás | |
| index.js | há 4 anos atrás | |
| package.json | há 4 anos atrás | |
Is this a native generator function?
var isGeneratorFunction = require('is-generator-function');
assert(!isGeneratorFunction(function () {}));
assert(!isGeneratorFunction(null));
assert(isGeneratorFunction(function* () { yield 42; return Infinity; }));
Simply clone the repo, npm install, and run npm test