Creates an object composed of keys generated from the results of running each element of arr thru func. The order of grouped values is determined by the order they occur in arr. The corresponding value of each key is an array of elements responsible for generating the key.
Creates an object composed of keys generated from the results of running each element of
arr
thrufunc
. The order of grouped values is determined by the order they occur inarr
. The corresponding value of each key is an array of elements responsible for generating the key.Returns
Returns the aggregated object.
Example