javascript how to pull a number from an array object 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;});