Skip to content

Instantly share code, notes, and snippets.

Created January 13, 2015 21:33
What would you like to do?
JS generators
function generator() {
var result = yield "";
var gen = generator()
var url =
var req = new XMLHTTPRequest(url)
req.ondocumentstatechage = function(resp) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment