|
|
3 yıl önce | |
|---|---|---|
| .. | ||
| test | 3 yıl önce | |
| .eslintignore | 3 yıl önce | |
| .eslintrc | 3 yıl önce | |
| .nvmrc | 3 yıl önce | |
| .nycrc | 3 yıl önce | |
| CHANGELOG.md | 3 yıl önce | |
| LICENSE | 3 yıl önce | |
| README.md | 3 yıl önce | |
| index.js | 3 yıl önce | |
| package.json | 3 yıl önce | |
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