|
пре 5 година | |
---|---|---|
.. | ||
test | пре 5 година | |
.eslintrc | пре 5 година | |
.jscs.json | пре 5 година | |
.npmignore | пре 5 година | |
.nvmrc | пре 5 година | |
.travis.yml | пре 5 година | |
CHANGELOG.md | пре 5 година | |
LICENSE | пре 5 година | |
Makefile | пре 5 година | |
README.md | пре 5 година | |
index.js | пре 5 година | |
package.json | пре 5 година | |
testling.html | пре 5 година |
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