# Module: fromPairs

## Table of contents

### Functions

- [default](fromPairs.md#default)

## Functions

### default

▸ **default**(`pairs`, `options?`): `Collection`

Produces a collection from an array of key/value tuples.

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `pairs` | `any`[][] |  |
| `options` | `Object` |  |
| `options.mode` | `MAPMODE` | Type of collection to produce. Defaults to Object. |

#### Returns

`Collection`

#### Defined in

[src/fromPairs.js:20](https://github.com/Twipped/js-utils/blob/9c196e3/src/fromPairs.js#L20)
