Skip to content

Instantly share code, notes, and snippets.

@loganmac
Created August 12, 2015 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loganmac/3fa7d8d45a86eeacccce to your computer and use it in GitHub Desktop.
Save loganmac/3fa7d8d45a86eeacccce to your computer and use it in GitHub Desktop.
var arr = ['w', 'y', 'k', 'o', 'p'];
var eArr = arr[Symbol.iterator]();
console.log(eArr.next().value); // w
console.log(eArr.next().value); // y
console.log(eArr.next().value); // k
console.log(eArr.next().value); // o
console.log(eArr.next().value); // p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment