26 lines
728 B
Markdown
26 lines
728 B
Markdown
<!-- 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
|
|
|
|
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> | ReadonlyArray<[TKey, TVal]>): Map<TKey, TVal>;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| target | Map<TKey, TVal> | |
|
|
| source | Map<TKey, TVal> \| ReadonlyArray<\[TKey, TVal\]> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
Map<TKey, TVal>
|
|
|