|
|
пре 2 недеља | |
|---|---|---|
| .. | ||
| test | пре 2 недеља | |
| .eslintrc | пре 2 недеља | |
| .nvmrc | пре 2 недеља | |
| .nycrc | пре 2 недеља | |
| CHANGELOG.md | пре 2 недеља | |
| LICENSE | пре 2 недеља | |
| README.md | пре 2 недеља | |
| index.d.ts | пре 2 недеља | |
| index.js | пре 2 недеља | |
| package.json | пре 2 недеља | |
| tsconfig.json | пре 2 недеља | |
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