var hasDuplicates = "eyes";
var noDuplicates = new Set(hasDuplicates); // {"e", "y", "s"}
console.log(Object.keys(noDuplicates)); // []
console.log(Object.values(noDuplicates)); // []
I basically want to access the 'e', 'y', and the 's' of the set called 'noDuplicates'.
var setToArray = [];
for (spot in noDuplicates) {
setToArray.push(Object.keys(noDuplicates)[spot])
}