# Module: mapReduce

## Table of contents

### Functions

- [default](mapReduce.md#default)

## Functions

### default

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

Iterates over a collection and generates an object based on key/value tuples returned from the predicate.

#### Parameters

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

#### Returns

`any`

#### Defined in

[src/mapReduce.js:17](https://github.com/Twipped/js-utils/blob/9c196e3/src/mapReduce.js#L17)
