Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 728 Bytes

js-utils.mergemap.md

File metadata and controls

25 lines (15 loc) · 728 Bytes

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>