From an array of objects, extract value of a property as array (JavaScript) - From https://stackoverflow.com/questions/19590865/from-an-array-of-objects-extract-value-of-a-property-as-array
var result = objArray.map(function(a) {return a.foo;});