I've got an associative array like this:
const data = []
data["01/01/2021"] = [1, 2, 3]
data["01/02/2021"] = [4, 5, 6]
data["01/03/2021"] = [7, 8, 9]
I've tried something like this :
return(
{data.map(d => <tr>{d // some stuff here to access the correct item, it's typed}</tr>}
)
But I can't do that on an a associative array I think. I've been thinking should I use a Map() instead, because it's key / value collection, I only need the key to be sorted in the correct way, I think I can do that even on a Map() ?
Thank you for your messages, I'm on this for a while now...