root 7621d6d22a 221005-1449-Kim | 2 years ago | |
---|---|---|
.. | ||
test | 2 years ago | |
.eslintignore | 2 years ago | |
.eslintrc | 2 years ago | |
.nvmrc | 2 years ago | |
.nycrc | 2 years ago | |
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago |
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