Repository URL to install this package:
|
Version:
1.0.0-1 ▾
|
vending-octopus-service-dep
/
usr
/
local
/
lib
/
vending
/
octopus
/
service
/
node_modules
/
is-generator-function
|
|---|
| .. |
| test |
| index.js |
| Makefile |
| CHANGELOG.md |
| package.json |
| .eslintrc |
| LICENSE |
| .editorconfig |
| README.md |
| .nvmrc |
| .jscs.json |
| .travis.yml |
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