123
rated 0 times
[
128]
[
5]
/ answers: 1 / hits: 62583
/ 8 Years ago, sun, april 17, 2016, 12:00:00
I have the following array of objects:
var array = [ {'a': '12', 'b':'10'}, {'a': '20', 'b':'22'} ];
How can I add a new property c = b - a
to all objects of the array?
More From » javascript