JavaScript’s standard higher order functions such as map() or forEach() do not work well if async functions are passed to them. In this article we’ll continue our study of possible fixes, by finding alternative implementations for some() and every() . At first I thought implementing these functions would be trivial: to check if some element of the array fulfills a condition, why not use mapAsync() and then apply some() to its output?

5m read timeFrom medium.com
Post cover image

Sort: