25 lines
606 B
Markdown
25 lines
606 B
Markdown
<!-- 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
|
|
|
|
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<NameValuePair<TVal>> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
Map<string, TVal>
|
|
|