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

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>