SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function* iterator() {
  2.    yield 1
  3.    yield 2
  4.    yield 3
  5. }
  6. for (const value of iterator()) {
  7.   console.log(value)
  8. }
  9. // -->
  10. // 1
  11. // 2
  12. // 3
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top