JSFiddle - React, Tailwind, and code Playground

JavaScript

var data, set = new Set(["a", "a","e", "b", "c", "b", "b", "b", "d"]);

for (data of set.entries()) {
    console.log(data); //Logs ["a", "a"]...
}
for (value of set.values()) {
    console.log(value);
}
//Logs the same thing as values() above
for (key of set.keys()) {
    console.log(key);
}