loading...

re: What’s your alternative solution? Challenge #57 VIEW POST

FULL DISCUSSION
 
   const count = str=>Object.entries(str.split('').reduce((c,a)=>(c[a] = (c[a] || 0) + 1, c), {})).map(([chr,count])=>({chr,count}))
code of conduct - report abuse