js-util

Home > rc-js-util > mapIntersect

mapIntersect() function

Does not check value equality, only key. Takes items from A.

See mapIntersect().

Signature:

export declare function mapIntersect<TKey, TIem>(a: ReadonlyMap<TKey, TIem>, b: ReadonlyMap<TKey, TIem>): Map<TKey, TIem>;

Parameters

Parameter Type Description
a ReadonlyMap<TKey, TIem>  
b ReadonlyMap<TKey, TIem>  

Returns:

Map<TKey, TIem>