JavaScript mengembalikan properti objek dari array
// ES5 compatible browsers
let result = objArray.map(a => a.foo);
OR
let result = objArray.map(({ foo }) => foo)
// FOR IE8 or older
var result = objArray.map(function(a) {return a.foo;});
Tony Chanel