Hacker News new | ask | show | jobs
by pitaj 3480 days ago
Destructuring is nice when used with Promises:

    Promise.all([
      getSettings(),
      getData(),
    ]).then(([settings, data]) => {
      // do whatever
    });