This is how my solution should look like:
Right now I have an array where I group them all by there first letter like so
const grouped = _.groupBy(topicPages, key => key.relatedTopic.title[0]);
And this is the result :
So I am trying to figure out a way to display the Letter A with the titles that are in that array.
I have tried using some sort of map :
grouped.map(first, key) => {
// here I want to display the key
// and then continue looping over
first.map(title => {
title.relatedTopic.title
})
})



_.forEach()over it, since you're using Lodash. Or use any of the other Lodash methods that work here like_.entries()or something. Or loop overObject.entries()without Lodash. How you display those results seems like a separate issue, though.