Zeichnen Sie eine Eigenschaft aus dem Array von Objekten JavaScript ab
var result = objArray.map(function(a) {return a.foo;});
Yawning Yacare
var result = objArray.map(function(a) {return a.foo;});
//Getting One Value from an Array of Items or sum of array
var numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
var total = numbers.reduce(function(total, current) {
return total + current;
}, 0);
console.log(total);