Skip to content

Instantly share code, notes, and snippets.

@nairihar
Created June 23, 2018 14:40
Show Gist options
  • Save nairihar/9a09f9d79d0b5a30a5f13d20674758ea to your computer and use it in GitHub Desktop.
Save nairihar/9a09f9d79d0b5a30a5f13d20674758ea to your computer and use it in GitHub Desktop.
JavaScript series, part 1, Set, medium
const mySet = new Set();
mySet.add('a');
mySet.add('b');
const mySetEntriesArray = [...mySet.entries()];
/*
[
['a', 'a'],
['b', 'b']
]
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment