1
0
Fork 0
js-utils/docs/api/js-utils.mergemap.md

26 lines
736 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [mergeMap](./js-utils.mergemap.md)
## mergeMap() function
Merge the `source` map into the `target` map, replacing keys that already exist.
<b>Signature:</b>
```typescript
export declare function mergeMap<TKey, TVal>(target: Map<TKey, TVal>, source: Map<TKey, TVal> | Array<[TKey, TVal]>): Map<TKey, TVal>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| target | <code>Map&lt;TKey, TVal&gt;</code> | |
| source | <code>Map&lt;TKey, TVal&gt; &#124; Array&lt;[TKey, TVal]&gt;</code> | |
<b>Returns:</b>
`Map<TKey, TVal>`