Contact: aviboots(AT)netvision.net.il
43,888 questions
57,280 answers
573 users
function makeset(str) { const arr = [...str]; const st = new Set(arr); return st; } const str = "nodejs Programming"; console.log(makeset(str)); /* run: Set(13) { 'n', 'o', 'd', 'e', 'j', 's', ' ', 'P', 'r', 'g', 'a', 'm', 'i' } */