rem’s Twitter Archive
—№ 69,518
⇤ Newest
Tweet
⇠ Newer
Tweet
Older
Tweet
⇢
Gah. Just burnt my fingers on array.filter(async f => …) and wondered why it always had 100% of the results.
Permalink
On twitter.com
❤️ 8
Favorites
2019 Mar 19
Mood
0
…in reply to @rem
Solution: res = await Promise.all(
array.map
(async f => …)); return array.filter((_, i) => res[i]) Meh. Does the job.
On twitter.com
❤️ 12
Favorites
2019 Mar 19
Mood +
1
🙂