ParentFull threadkeville·const foo = bar.reduce((hash, item) => { hash[item.id] = item; return hash; }, {});View on HN