I'm dealing with a JSON array in vanilla JavaScript (no JQuery) and I've hit a roadblock.
My task is to identify each unique value for 'Service' and calculate the frequency of each value.
For example, if the value 100 appears 3 times and the value 101 appears 5 times, the desired result should look like:
{ "100" : "3", "101" : "5"}
I'd prefer not to resort to a traditional loop if there's a more succinct solution available such as using forEach()