|
|
пре 3 година | |
|---|---|---|
| .. | ||
| test | пре 3 година | |
| .eslintignore | пре 3 година | |
| .eslintrc | пре 3 година | |
| .nvmrc | пре 3 година | |
| .nycrc | пре 3 година | |
| CHANGELOG.md | пре 3 година | |
| LICENSE | пре 3 година | |
| README.md | пре 3 година | |
| index.js | пре 3 година | |
| package.json | пре 3 година | |
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