True if every item in a sequence matches the given predicate
function every(predicate) {
    return async (it) => {
        var e_23, _a;
        let i = 0;
        try {
            for (var it_4 = __asyncValues(it), it_4_1; it_4_1 = await it_4.next(), !it_4_1.done;) {
                const item = it_4_1.value;
                if (!await Promise.resolve(predicate(item, i))) {
                    return false;
                }
                i = i + 1;
            }
        }
        catch (e_23_1) { e_23 = { error: e_23_1 }; }
        finally {
            try {
                if (it_4_1 && !it_4_1.done && (_a = it_4.return)) await _a.call(it_4);
            }
            finally { if (e_23) throw e_23.error; }
        }
        return true;
    };
}