make an array of values from an array of objects javascript 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;});