![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | test/ | 2 years ago | - | |
![]() | CHANGELOG.md | 40 years ago | 22K | |
![]() | LICENSE | 40 years ago | 1.1K | |
![]() | README.md | 40 years ago | 1.7K | |
![]() | index.js | 40 years ago | 964 | |
![]() | package.json | 2 years ago | 3.5K |
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