Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var log = (x) =>
{ console.log(x) }
var ary = [10, 23, 4, 0, 77];
var s = ary.values();
log(s.next()); // {"value":10,"done":false}
log(s.next()); // {"value":23,"done":false}
log(s.next()); // {"value":4,"done":false}
log(s.next()); // {"value":0,"done":false}
log(s.next()); // {"value":77,"done":false}
log(s.next()); // {"done":true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment