map 2 array into a object code example Example: map a property from array of objects javascript var result = objArray.map(function(a) {return a.foo;});