/** * Implement array data grouping method based on type * Return the result as an object * * @param {*} array * @param {*} callBack * @returns */ declare const groupByKey: (array?: T[] | undefined, fn?: callBack | undefined) => Record; /** * 回调函数 */ export type callBack = (item: T) => K; export { groupByKey }; export default groupByKey;