nice-pivot (npm): Simple yet powerfull pivoting tool. It groups an array of objects by specified properties. Nested multi-level grouping is supported, as well as other nice features - read the manual.
Keywords: array|groupby|pivot