> For the complete documentation index, see [llms.txt](https://octoris.gitbook.io/octoris/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://octoris.gitbook.io/octoris/utils-api/mergemaps.md).

# mergeMaps

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

## 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' }

```
