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

728 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> | ReadonlyArray<[TKey, TVal]>): Map<TKey, TVal>;

Parameters

Parameter Type Description
target Map<TKey, TVal>
source Map<TKey, TVal> | ReadonlyArray<[TKey, TVal]>

Returns:

Map<TKey, TVal>