"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterAsync = void 0;
/*
  Collects a AsyncIterable into an array with an optional filter predicate
*/
async function filterAsync(iterable, predicate) {
    const results = [];
    for await (const item of iterable) {
        if (predicate && predicate(item)) {
            results.push(item);
        }
    }
    return results;
}
exports.filterAsync = filterAsync;

//# sourceMappingURL=../../maps/core/async/AsyncUtilities.js.map
