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.
72 lines (34 loc) • 969 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [mapArrayMap](./rc-js-util.maparraymap.md)
## mapArrayMap() function
Like `Array.map` but with a `Map` input. Outputs an `Array`<!-- -->.
**Signature:**
```typescript
export declare function mapArrayMap<TKey, TValue, TMapped>(map: Map<TKey, TValue>, callback: (value: TValue, key: TKey) => TMapped): TMapped[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
map
</td><td>
Map<TKey, TValue>
</td><td>
</td></tr>
<tr><td>
callback
</td><td>
(value: TValue, key: TKey) => TMapped
</td><td>
</td></tr>
</tbody></table>
**Returns:**
TMapped\[\]
An array of mapped values.
## Remarks
See [mapArrayMap()](./rc-js-util.maparraymap.md)<!-- -->.