Skip to content

Instantly share code, notes, and snippets.

@dherman dherman/iterators-ftw.js
Last active Dec 14, 2015

Embed
What would you like to do?
// {
// next: () -> { done: false, value: any }
// | { done: true[, value: any] }
// }
var i1 = (function *f() {
return;
})();
'value' in i1.next();
var i2 = (function *g() {
})();
'value' in i2.next();
var i3 = (function* h() {
return (void 0);
})();
'value' in i3.next();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.