Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
iterating through keys and values in set
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