get value from object array code example
Example 1: array objects to array of one property
let result = objArray.map(a => a.foo);
Example 2: map a property from array of objects javascript
var result = objArray.map(function(a) {return a.foo;});
let result = objArray.map(a => a.foo);
var result = objArray.map(function(a) {return a.foo;});