const groupBy = (array, fn) => { const result = {}; for (const item of array) { if (!result[`${fn(item)}`]) { result[`${fn(item)}`] = [item]; } else { result[`${fn(item)}`].push(item); } } return result; } 这样可以嘛🤔 兄弟你投的是哪个部门啊 实习还是社招
点赞 3

相关推荐

joecii:如果没有工资,那可能没有工资是这家公司最小的问题了
找实习记录
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务