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

747 B

Home > @apextoaster/js-utils > pushMergeMap

pushMergeMap() function

Merge the provided maps into a new map, merging keys that already exist by pushing new items.

Signature:

export declare function pushMergeMap<TKey, TVal>(...args: ReadonlyArray<Map<TKey, TVal | ReadonlyArray<TVal>>>): Map<TKey, ReadonlyArray<TVal>>;

Parameters

Parameter Type Description
args ReadonlyArray<Map<TKey, TVal | ReadonlyArray<TVal>>>

Returns:

Map<TKey, ReadonlyArray<TVal>>