599 B
599 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: Array<NameValuePair<TVal>>): Map<string, TVal>;
Parameters
Parameter | Type | Description |
---|---|---|
pairs | Array<NameValuePair<TVal>> |
Returns:
Map<string, TVal>