Based on this How to split array dynamically based on single value in JavaScript Node.js i created object with Arrays, and i can display name of each array by this:
- each item in Object.keys(groupedData)
li= item
result is:
* Fruit
* Sport
* Kitchen
However how can I display value of each array in diffrent tables?
eg.
I don't know how to take any value from array?
I thought about this li= item.array[0].tag
but it doesn't work.
@EDIT
If I use:
- each val, key in groupedData
li #{JSON.stringify(val)}
I can display values, result at view:
[{"name":"Apple","tag":"Fruit","price": 2},
{"name":"Kiwi","tag":"Fruit","price": 1}]
But how can i put this to table?