2020-03-29 13:43:52 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [mergeMap](./js-utils.mergemap.md)
|
|
|
|
|
|
|
|
## mergeMap() function
|
|
|
|
|
2020-03-31 13:29:47 +00:00
|
|
|
Merge the `source` map into the `target` map, replacing keys that already exist.
|
|
|
|
|
2020-03-29 13:43:52 +00:00
|
|
|
<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<TKey, TVal></code> | |
|
|
|
|
| source | <code>Map<TKey, TVal> | Array<[TKey, TVal]></code> | |
|
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
`Map<TKey, TVal>`
|
|
|
|
|