Peta untuk ID

 let objArray2 = [];
 objArray.forEach(arr => objArray2.push(arr.foo));
Average Alligator