3 ms·
Destructuring is nice when used with Promises: Promise.all([ getSettings(), getData(), ]).then(([settings, data]) => { // do whatever
by pitaj 10y ago
Destructuring is nice when used with Promises:
Promise.all([
getSettings(),
getData(),
]).then(([settings, data]) => {
// do whatever
});