Lodash.js - countBy() function
A simple Lodash.js example of the countBy() function, which creates an array of key value pairs, describing how many items with specific values are present in the product of the function after invoking the anonymous function.