return an array of strings from an array of objects js

JavaScript
var items = [{
  id: 1,
  name: 'AAA'
}, {
  id: 2,
  name: 'BBB'
}, {
  id: 3,
  name: 'CCC'
}];

var names = items.map(function(item) {
  return item['name'];
});

console.log(names);
console.log(items);
Source

Also in JavaScript: