@miyue-mma/shared / toMap
函数: toMap()
ts
function toMap<T>(
data,
key,
props): Record<string, T | boolean>转成对象结构
类型参数
• T extends Record<string, unknown>
参数
data
T[]
源对象数组
key
string
指定属性名
props
ToMapProps = {}
配置项
返回
Record<string, T | boolean>