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

相关推荐

高斯林的信徒:武大简历挂?我勒个骚岗
点赞 评论 收藏
分享
xxxxOxo:该催就催,想要你的不会因为催就挂,催了就挂的是因为本来就要挂你
点赞 评论 收藏
分享
牛客网
牛客企业服务