Last active
June 23, 2018 17:30
-
-
Save nairihar/4771329196f85bd3653b6fd38aeb6a69 to your computer and use it in GitHub Desktop.
JavaScript series, part 1, Set, medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mySet = new Set(); | |
mySet | |
.add(1) | |
.add(2); | |
for (let val of mySet) { | |
console.log(val); | |
} | |
// 1, 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment