Reply to
: 咦 看來目前在 js 還沒有公認方便易用的 async fn composition 手法?🤔
— Jeremy Lu (@thecat) June 5, 2021
我理想中的語法是這樣 → foo 與 bar 皆為 async fn,先執行 bar 撈回資料後傳給 foo 處理,最終吐回 result[] 🙌
const result = _.compose( await foo, await bar )
Reduce?