4 ms·
Nit, but await is an operator, not an annotation on a statement. So that should be written as: const [a, b] = await Promise.all([getA(), getB()]);
by rictic 10y ago
Nit, but await is an operator, not an annotation on a statement. So that should be written as:
const [a, b] = await Promise.all([getA(), getB()]);