mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04: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;
|
||
|
|
}, {})
|