async-flat-map

∀ a,b. [a] → (a → (Error → [b] → ()) → ()) → (Error → [b] → ())

Usage no npm install needed!

<script type="module">
  import asyncFlatMap from 'https://cdn.skypack.dev/async-flat-map';
</script>

README

async-flat-map
Build Status

Like flatMap, but asynchronous.

API

∀ a, b. (a → (Error → [b] → ()) → ()) → [a] → (Error → [b] → ())

Exits early on error. Collects and concats array results. Runs in parallel. Maintains result order.

Licence

MIT