Kevin
Results
1
comments of
Kevin
Array.from(new Set(arr.map(item => item.categories).flat())).map(item => ({ name: item, categories: arr.filter(it => it.categories.includes(item)).map(i => i.name) }))