First, I'm asking this from my phone so it is not practical to place a code snippet at this time, however I just need to pointed in the right direction and will be as specific as possible.
I have an array that consists of multiple objects. Each object has a number of properties and values, one of which is "Cost: cost" with the value being a number.
How do I go about finding the sum, getting the total cost of all the objects? I've tried using reduce() but am not getting the proper results.
Any help is much appreciated!