강의

멘토링

커뮤니티

Inflearn Community Q&A

csh721112826's profile image
csh721112826

asked

Functional Programming and JavaScript ES6+

[QnA] Why do we need FxJS's map function when there is Array.prototype.map?

4분57초 쯤에

Written on

·

236

0

const res = await map(async a=> await delayI(a*a),list);

4분 57초쯤에 바로 return을 해주기떄문에 async, await이 지운다는 말이 이해가 안되어 질문드립니다! 

혹시 이유가 go1함수에서 delayI(a*a)가 then으로 풀려서 그런가요?

javascript함수형-프로그래밍

Answer 1

2

mduniv님의 프로필 이미지
mduniv
Instructor

음. 텍스트로 답을 드리기에는 너무 버거운 질문인거 같아요. async await 가 있던지 없던지 promise를 리턴하고 있기 때문이에요. promise 자체에 대한 응용 연습을 많이해주셔야 이해가 되실것 같아요!

csh721112826's profile image
csh721112826

asked

Ask a question