js es6 map array of objects to array of new objects 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;});