606 B
606 B
Home > @apextoaster/js-utils > pairsToMap
pairsToMap() function
Turns a list of name-value pairs into a map.
Signature:
export declare function pairsToMap<TVal>(pairs: ReadonlyArray<NameValuePair<TVal>>): Map<string, TVal>;
Parameters
Parameter | Type | Description |
---|---|---|
pairs | ReadonlyArray<NameValuePair<TVal>> |
Returns:
Map<string, TVal>