인프런 커뮤니티 질문&답변
await Promise.all 질문
작성
·
155
0
if (hashtags) {
await Promise.all(
hashtags.map(tag =>
db.Hashtag.findOrCreate({
where: { name: tag.slice(1).toLowerCase() }
})
)
);
}
promise에서 개선된게 async/await로 알고 있는데 await랑 promise를 모두 쓴 이유가 궁금합니다.





