# ee.Reducer.group

Groups reducer records by the value of a given input and reduces each group with the given reducer.

<br />

| Usage | Returns |
|---|---|
| `Reducer.group(*groupField*, *groupName*)` | Reducer |

| Argument | Type | Details |
|---|---|---|
| this: `reducer` | Reducer | The reducer to apply to each group, without the group field. |
| `groupField` | Integer, default: 0 | The field that contains record groups. |
| `groupName` | String, default: "group" | The dictionary key that contains the group. Defaults to 'group'. |