Javascript – How get total in an array of object
I have this array, and i want to get the sum amount of each Order.item [ {"OrderReceiverId":"6698eea782e24cc9d42eab7f", "Order":{ "CustomerId":"669aa55079cce2e96f9a7e69", "CustomerName":"Erigbemi", "Date":"2024/07/19", "TrackingId":"43035", "Status":"Processing", "Amount":{"$numberInt":"25000"}, "Item":"Orange" } }, {"OrderReceiverId":"6698eea782e24cc9d42eab7f", "Order":{ "CustomerId":"669aa55079cce2e96f96t77", "CustomerName":"James", "Date":"2024/07/19", "TrackingId":"42335", "Status":"Processing", "Amount":{"$numberInt":"15000"}, "Item":"Tomatoes" }, {"OrderReceiverId":"6698eea782e24cc9d42eab7f", "Order":{ "CustomerId":"669aa55079cce2e96f9a7e69",…