I am trying to find the total sum for each item sold inside an array, like so:
The array looks like this:
[
{
'Some Title Item', '22', 'Apple'
},
{
'Another Item', '12', 'Android'
},
{
'Third Item', '15', 'Android'
},
{
'Another Item', '6', 'Apple'
},...
]
I already have a variable were I store all the titles/labels, and now need to find the sum of total items sold for each of those.