Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created February 8, 2018 06:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save goofmint/6e1cc7ea5738389ee0eb8a4d1a9d9d03 to your computer and use it in GitHub Desktop.
console.log(g.next());
-> {done: false, value: 4}
console.log(g.next());
-> {done: false, value: 5}
console.log(g.next());
-> {done: false, value: 6}
console.log(g.next());
-> {done: true, value: undefined}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment