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

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>