This code:
const eat = { when: 'now' }
const fruits = ['apple', 'orange']
eat.fruit = fruits[1] // orange
I can use array destructuring like this:
const [, selectedFruit] = fruits
eat.fruit = selectedFruit
But can I make a one-liner out of it?