|
|
1 周之前 | |
|---|---|---|
| .. | ||
| test | 1 周之前 | |
| .eslintrc | 1 周之前 | |
| .nvmrc | 1 周之前 | |
| .nycrc | 1 周之前 | |
| CHANGELOG.md | 1 周之前 | |
| LICENSE | 1 周之前 | |
| README.md | 1 周之前 | |
| index.d.ts | 1 周之前 | |
| index.js | 1 周之前 | |
| package.json | 1 周之前 | |
| tsconfig.json | 1 周之前 | |
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