const set = new Set(); set.add("one"); set.add("two"); const arr = Array.from(set); console.log(arr) // ["one", "two"]