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