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
|
2020-06-30 13:16:22 +00:00
|
|
|
export declare function mergeMap<TKey, TVal>(target: Map<TKey, TVal>, source: Map<TKey, TVal> | ReadonlyArray<[TKey, TVal]>): Map<TKey, TVal>;
|
2020-03-29 13:43:52 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-06-29 23:23:16 +00:00
|
|
|
| target | Map<TKey, TVal> | |
|
2020-06-30 13:16:22 +00:00
|
|
|
| source | Map<TKey, TVal> \| ReadonlyArray<\[TKey, TVal\]> | |
|
2020-03-29 13:43:52 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-06-29 23:23:16 +00:00
|
|
|
Map<TKey, TVal>
|
2020-03-29 13:43:52 +00:00
|
|
|
|