const unrepeated = (str) => [...new Set(str)].join(''); unrepeated("hello"); //➞ "helo" unrepeated("aaaaabbbbbb"); //➞ "ab" unrepeated("11112222223333!!!??"); //➞ "123!?"