Skip to content

routier-collection


routier-collection / core/src / toMap

Function: toMap() ​

toMap<T>(data, keySelector): Map<string | T[keyof T], T>

Defined in: core/src/utilities/arrays.ts:1

Type Parameters ​

T ​

T extends object

Parameters ​

data ​

T[]

keySelector ​

(item) => string | T[keyof T]

Returns ​

Map<string | T[keyof T], T>

Released under the MIT License.