UNPKG

241 BJavaScriptView Raw
1export async function every(source, predicate) {
2 let i = 0;
3 for await (let item of source) {
4 if (!await predicate(item, i++)) {
5 return false;
6 }
7 }
8 return true;
9}
10
11//# sourceMappingURL=every.mjs.map