Last active
February 28, 2021 05:03
-
-
Save DaveRandom/1761f32553902efb8fe826d2b76e8251 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
() => { | |
let first = true; | |
return { | |
next: function () { | |
if (first) { | |
return {done: false, value: 'bye'}; | |
} | |
first = false; | |
return {done: true} | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment