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

25 lines
606 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [pairsToMap](./js-utils.pairstomap.md)
## pairsToMap() function
Turns a list of name-value pairs into a map.
<b>Signature:</b>
```typescript
export declare function pairsToMap<TVal>(pairs: ReadonlyArray<NameValuePair<TVal>>): Map<string, TVal>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| pairs | ReadonlyArray&lt;NameValuePair&lt;TVal&gt;&gt; | |
<b>Returns:</b>
Map&lt;string, TVal&gt;