I have a string with repeated letters. I want letters that are repeated more than once to show only once. For instance I have a string aaabbbccc i want the result to be abc.
Using lodash:
_.uniq('aaabbbccc').join(''); // gives 'abc'