Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/wojtekmaj/async-array-utils. A collection of array-related async utilities.
array array-methods async promise utils
Something went wrong. Try again.
270 B · 12 lines
JavaScript
at yarn-2
12345678910111213export default async function asyncMapStrict(arr, fn) { const result = [];
for (let idx = 0; idx < arr.length; idx += 1) { const cur = arr[idx];
// eslint-disable-next-line no-await-in-loop result.push(await fn(cur, idx, arr)); }
return result;}