[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. Signature: ```typescript export declare function mergeMap(target: Map, source: Map | Array<[TKey, TVal]>): Map; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | target | Map<TKey, TVal> | | | source | Map<TKey, TVal> | Array<[TKey, TVal]> | | Returns: `Map`