let charFreq = str => { return str.split('').reduce((total, letter) => { total[letter] ? total[letter]++ : total[letter] = 1; return total; }, {}); };