mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-28 01:00:05 +08:00
7 lines
115 B
JavaScript
7 lines
115 B
JavaScript
|
const itemById = Array.from(
|
||
|
new Set()
|
||
|
).reduce((byId, item) => {
|
||
|
byId[item.id] = item
|
||
|
return result;
|
||
|
}, {})
|