|
|
před 3 roky | |
|---|---|---|
| .. | ||
| test | před 3 roky | |
| .eslintignore | před 3 roky | |
| .eslintrc | před 3 roky | |
| .nvmrc | před 3 roky | |
| .nycrc | před 3 roky | |
| CHANGELOG.md | před 3 roky | |
| LICENSE | před 3 roky | |
| README.md | před 3 roky | |
| index.js | před 3 roky | |
| package.json | před 3 roky | |
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