get single property from list in js 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;});