Created
April 27, 2020 15:25
-
-
Save essamamdani/f01d6e28ba507af309a8b1098aa7429c to your computer and use it in GitHub Desktop.
iterating through keys and values in set
This file contains 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
var setA = new Set(); | |
setA.add("maps").add("filters").add("generators").add("arrow functions"); | |
setA.has(“promises”); | |
setA.has(“generators”); | |
for(const s in setA.values()) | |
document.write(s + "<br/>"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment