2020-03-29 14:10:40 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [pairsToMap](./js-utils.pairstomap.md)
|
|
|
|
|
|
|
|
## pairsToMap() function
|
|
|
|
|
2020-03-31 13:29:47 +00:00
|
|
|
Turns a list of name-value pairs into a map.
|
|
|
|
|
2020-03-29 14:10:40 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2020-06-30 13:16:22 +00:00
|
|
|
export declare function pairsToMap<TVal>(pairs: ReadonlyArray<NameValuePair<TVal>>): Map<string, TVal>;
|
2020-03-29 14:10:40 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-06-30 13:16:22 +00:00
|
|
|
| pairs | ReadonlyArray<NameValuePair<TVal>> | |
|
2020-03-29 14:10:40 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-06-29 23:23:16 +00:00
|
|
|
Map<string, TVal>
|
2020-03-29 14:10:40 +00:00
|
|
|
|