Skip to content

@vtj


@vtj / node / 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/types/data.d.ts:7

Released under the MIT License.