|
před 5 roky | |
---|---|---|
.. | ||
test | před 5 roky | |
.eslintrc | před 5 roky | |
.jscs.json | před 5 roky | |
.npmignore | před 5 roky | |
.nvmrc | před 5 roky | |
.travis.yml | před 5 roky | |
CHANGELOG.md | před 5 roky | |
LICENSE | před 5 roky | |
Makefile | před 5 roky | |
README.md | před 5 roky | |
index.js | před 5 roky | |
package.json | před 5 roky | |
testling.html | před 5 roky |
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