---
description: Takes a list(array) of maps and merges them into a singular branching model
---

# mergeMaps

## Arguments

| Name       | Type   | Description                        |
| ---------- | ------ | ---------------------------------- |
| listOfMaps | Map\[] | The array of maps we wish to merge |

## Returns

| Type | Description                             |
| ---- | --------------------------------------- |
| Map  | A new Map of all the given array values |

## Usage

```javascript
const foo = new Map([['a', 'hello']])
const bar = new Map([['b', 'goodbye']])

mergeMaps([foo, bar])
// => Map { 'a' => 'hello' 'b' => 'goodbye' }

```
