make-generator-function
Returns an arbitrary generator function, or undefined if generator syntax is unsupported. If both generator syntax and concise method syntax are supported, the generator function returned will have a "concise" property containing a concise generator method.
Example
var maybeGeneratorFunction = ;if maybeGeneratorFunction ; var maybeConciseGeneratorMethod = maybeGeneratorFunctionconcise; if maybeConciseGeneratorMethod ; else ;
Tests
Simply clone the repo, npm install
, and run npm test