Skip to content

Instantly share code, notes, and snippets.

@chiefGui
Last active August 29, 2015 14:04
Show Gist options
  • Save chiefGui/08eb6839aceb92c85fa2 to your computer and use it in GitHub Desktop.
Save chiefGui/08eb6839aceb92c85fa2 to your computer and use it in GitHub Desktop.
function jj () {
var x = [0, 1, 2, 3, 4, 5];
while (true) {
yield x;
};
};
console.log(jj());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment