Firestore array to table

Hi all,

I'm having trouble displaying data from a Firestore document array into a table. The query returns the array (but since it's not a JSON object, the data do not show up as separate rows). Any guidance how to transform this array to something the table can use to display would be appreciated.


Answered my own question...

return, index) => ({ color: str, id: index+1}))