HIDE PLAYLIST

Reduce an array into a single object


We'll look at using array.reduce to transform an array of strings into an object that counts the occurrence of each string in the array.