sensordb2 e64a8defe5 3.17 | il y a 1 an | |
---|---|---|
.. | ||
test | il y a 1 an | |
.eslintignore | il y a 1 an | |
.eslintrc | il y a 1 an | |
.nvmrc | il y a 1 an | |
.nycrc | il y a 1 an | |
CHANGELOG.md | il y a 1 an | |
LICENSE | il y a 1 an | |
README.md | il y a 1 an | |
index.js | il y a 1 an | |
package.json | il y a 1 an |
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