Destructuring Assignment

const temps = {yesterday: 70, today: 71, tomorrow: 72};
const {today: highToday, tomorrow: highTomorrow} = temps;

PT1602's Notebook

Saving code examples I searched multiple times.


By pt1602, 2020-06-02