@aegenet/belt-array-async-foreach
v2.3.0
Published
Array async foreach (sequentially)
Downloads
83
Readme
@aegenet/belt-array-async-foreach
Array Async forEach (sequentially)
💾 Installation
yarn add @aegenet/belt-array-async-foreach@^2.0.0
# or
npm i @aegenet/belt-array-async-foreach@^2.0.0
📝 Usage
import { arrayAsyncForEach } from '@aegenet/belt-array-async-foreach';
const entries = [
{
id: 5,
value: 'Yo',
}, {
id: 7,
value: 'Ho',
},
];
await arrayAsyncForEach(entries, (value, index, array) => {
/** do something */
await something(value);
});