Skip to content

matthewmueller/generatorfunction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generatorfunction

In the same way that you'd do:

var f = new Function ([arg1[, arg2[, ...argN]],] functionBody)

You can do that with Generator Functions:

var GeneratorFunction = require('generatorfunction')
var g = new GeneratorFunction ([arg1[, arg2[, ...argN]],] functionBody)

Installation

npm install generatorfunction

License

MIT

About

Create generator functions dynamically

Resources

Stars

Watchers

Forks

Packages

No packages published