首页 > TAG信息列表 > rowsSpan

分组排序

      /** * 分组排序 */ const sortByKey = (array: object[], key: string) => { return array.reduce((total, next) => { const index = total.findIndex((item, index, self) => { return item[key] === next[key]; }); return index === -1