how to have an array of objects with only one property code example
Example: map a property from array of objects javascript
var result = objArray.map(function(a) {return a.foo;});
var result = objArray.map(function(a) {return a.foo;});