0

I am trying to solve the following problem:
Return total price based on items and certain conditions. For example,
take this array [['oranges', 1], ['apples', 2],['grapes', 7]].
Based on this array return total costs if second array property is a quantity and
product is first array item. If say...