Skip to content

Instantly share code, notes, and snippets.

@gpalsingh
Last active April 25, 2018 14:16
Show Gist options
  • Save gpalsingh/e13e2d910a38fdd8f192cc0fe9a3b203 to your computer and use it in GitHub Desktop.
Save gpalsingh/e13e2d910a38fdd8f192cc0fe9a3b203 to your computer and use it in GitHub Desktop.
set_keys
const animals = new Set(["rat", "dog", "cat", "horse", "elephant", "rat", "rat", "cat"]);
let animal_iter = animals.keys();
console.log(animal_iter.next());
console.log(animal_iter.next());
console.log(animal_iter.next());
console.log(animal_iter.next());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment