mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
6 lines
115 B
JavaScript
6 lines
115 B
JavaScript
const itemById = Array.from(
|
|
new Set()
|
|
).reduce((byId, item) => {
|
|
byId[item.id] = item
|
|
return result;
|
|
}, {})
|