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.
294 B · 14 lines
JavaScript
at yarn-2
123456789101112131415export default async function asyncSomeStrict(arr, fn) { for (let idx = 0; idx < arr.length; idx += 1) { const cur = arr[idx];
// eslint-disable-next-line no-await-in-loop const result = await fn(cur, idx, arr);
if (result) { return true; } }
return false;}