groupBy

Group an array of objects by a key

Code

Example Usage