Async version of the forEach function.
Install to your existing project using:
npm i @spongex/async-for-each
Include ECMAScript:
import { asyncForEach } from '@spongex/async-for-each'
Include CommonJS:
const { asyncForEach } = require('@spongex/async-for-each')
const collection:Array<number> = [ 1, 2, 3, 4, 5 ]
asyncForEach(collection, async (item) => {
// do something asynchronous with item
})
- Dependencies bump
- Comment error, quick fix
- Initial release