|
hace 5 años | |
---|---|---|
.. | ||
test | hace 5 años | |
.eslintrc | hace 5 años | |
.jscs.json | hace 5 años | |
.npmignore | hace 5 años | |
.nvmrc | hace 5 años | |
.travis.yml | hace 5 años | |
CHANGELOG.md | hace 5 años | |
LICENSE | hace 5 años | |
Makefile | hace 5 años | |
README.md | hace 5 años | |
index.js | hace 5 años | |
package.json | hace 5 años | |
testling.html | hace 5 años |
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