🌈 搜索
📅  最后修改于: 2022-03-11 14:59:50.829000             🧑  作者: Mango
const result = arr.reduce((obj, cur) => ({...obj, [cur.sid]: cur}), {})