# Aggregate - [`groupBy`](#groupby) - [`min`](#min) - [`max`](#max) - [`mean`](#mean) - [`sum`](#sum) You can check the module import [`here`](./modules.md). #### groupBy Returns the groupped data of the given array. ##### File ```typescript import { NgGroupByPipeModule } from 'angular-pipes'; ``` ##### Usage ```javascript const values = [ { name: 'a', prop: 'foo' }, { name: 'b', prop: 'bar' }, { name: 'c', prop: 'bar' }, { name: 'd', prop: 'foo' }, ]; ``` ```html {{ values | groupBy: 'prop' }} ``` #### min Returns the minimum of the given array. ##### File ```typescript import { NgMinPipeModule } from 'angular-pipes'; ``` ##### Usage ```html {{ [5, 4, 1, 9] | min }} ``` #### max Returns the maximum of the given array. ##### File ```typescript import { NgMaxPipeModule } from 'angular-pipes'; ``` ##### Usage ```html {{ [5, 4, 1, 9] | max }} ``` #### mean Returns the mean of the given array. ##### File ```typescript import { NgMeanPipeModule } from 'angular-pipes'; ``` ##### Usage ```html {{ [5, 5, 1, 9] | mean }} ``` #### sum Returns the sum of the given array. ##### File ```typescript import { NgSumPipeModule } from 'angular-pipes'; ``` ##### Usage ```html {{ [5, 5, 1, 9] | sum }} ```