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

736 B

Home > @apextoaster/js-utils > mergeMap

mergeMap() function

Merge the source map into the target map, replacing keys that already exist.

Signature:

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 Map<TKey, TVal>
source Map<TKey, TVal> | Array<[TKey, TVal]>

Returns:

Map<TKey, TVal>