# Module: threepiece

## Table of contents

### Collections Functions

- [default](threepiece.md#default)

## Collections Functions

### default

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

Iterates over a collection, providing the previous, current and next items to the predicate function.

#### Parameters

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

#### Returns

`any`[]

#### Defined in

[src/threepiece.js:14](https://github.com/Twipped/js-utils/blob/9c196e3/src/threepiece.js#L14)
