# Module: groupBy

## Table of contents

### Functions

- [default](groupBy.md#default)

## Functions

### default

▸ **default**(`collection`, `predicate`): `any`

Produce an object of arrays containing the collection's contents, keyed according to the predicate.

#### Parameters

| Name | Type |
| :------ | :------ |
| `collection` | `Collection` |
| `predicate` | `Predicate` |

#### Returns

`any`

#### Defined in

[src/groupBy.js:13](https://github.com/Twipped/js-utils/blob/9c196e3/src/groupBy.js#L13)
