Fork me on GitHub
#cherry
<
2022-11-29
>
alex01:11:54

(js/Promise.all [promise-1 promise-2 promise-3]) seems to work well, and a colleague asked why we don't need to specify a JS array. Does Cherry automatically convert cljs vector -> js array for the purpose of making js/Promise.all more ergonomic?

lilactown04:11:17

I believe Promise.all works with anything that is iterable, and CLJS vectors are iterable

👍 3
🤯 1