nullish coalescing
Promise.all
Promise.allSettled
すべてのプロミスが履行されると結果の配列を返します。
Promise.all(promises): Promise<T[]>
아래 값을 입력하면 예제에 즉시 반영됩니다.
const
users
posts
await
Promise
fetchUsers
fetchPosts
const [users, posts] = await Promise.all([ fetchUsers(), fetchPosts(), ]);