Function groupBy

Creates an object composed of keys generated from the results of running each element of array through iteratee.