Skip to content

@vtj


@vtj / base / arrayToMap

Function: arrayToMap()

arrayToMap<T>(data, prop): Map<any, T>

数组转Map

Type Parameters

T

Parameters

data

T[]

prop

keyof T

Returns

Map<any, T>

Defined in

packages/base/src/data.ts:8

Released under the MIT License.