I have an array like this
var dataSheet = [
[{price: 200}, {price: 200}, {price: 200}],
[{price: 200}, {price: 200}],
[{price: 200}],
]
I would like to sum all the price and a result like this
result = [[600], [400], [200]]
Any help would be appreciated, thanks
[600, 400, 200]dataSheetis dynamic, thanks for your comment