rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
68 lines (32 loc) • 897 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [mapIntersect](./rc-js-util.mapintersect.md)
## mapIntersect() function
Does not check value equality, only key. Takes items from A.
See [mapIntersect()](./rc-js-util.mapintersect.md)<!-- -->.
**Signature:**
```typescript
export declare function mapIntersect<TKey, TIem>(a: ReadonlyMap<TKey, TIem>, b: ReadonlyMap<TKey, TIem>): Map<TKey, TIem>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
a
</td><td>
ReadonlyMap<TKey, TIem>
</td><td>
</td></tr>
<tr><td>
b
</td><td>
ReadonlyMap<TKey, TIem>
</td><td>
</td></tr>
</tbody></table>
**Returns:**
Map<TKey, TIem>