Question: I have an array of objects, similar to this:

```
fruits = [
  { name: apple, color: red }, {name: lemon, color: yellow } etc.
]

```

I'm trying to use `map` to get a new array of just the colors, such as

```
fruitColors = ['red', 'yellow']

```

I'm kinda new to ES6, what's the syntax for this?

Answer: 
```js
const fruits = [
  { name: 'apple', color: 'red' }, 
  { name: 'lemon', color: 'yellow' }
];

console.log(fruits.map(fruit => fruit.color));

// OR EVEN SHORTER USING DESTRUCTURING
console.log('USING DESTRUCTURING');
console.log(fruits.map(({color}) => color));
```
`fruits.map(fruit => fruit.color)`