Typescript group array by key

前端 未结 0 1010
栀梦
栀梦 2021-01-03 05:35

How can I type the reduce function parameters.

interface IGroupArrayByKey {
    data: T[]
    key: string
}

export const groupArrayByKey =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题