Ekstrak nilai dari array objek JavaScript
let result = objArray.map(a => a.foo);
Index out of bounds
let result = objArray.map(a => a.foo);
var obj = {v1: 'v1', v2: 'v2'};
// extract object's values as array
var valuesArray = Object.values(obj); // ['v1','v2']