Y
Hacker News
new
|
ask
|
show
|
jobs
by
keville
1650 days ago
const foo = bar.reduce((hash, item) => { hash[item.id] = item; return hash; }, {});