"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.filter = void 0;
const Observable_js_1 = require("../Observable.js");
function filter(predicate, thisArg) {
    return (source) => new Observable_js_1.Observable((destination) => {
        let index = 0;
        source.subscribe((0, Observable_js_1.operate)({ destination, next: (value) => predicate.call(thisArg, value, index++) && destination.next(value) }));
    });
}
exports.filter = filter;//# sourceMappingURL=http://go/sourcemap/sourcemaps/63a2996a10d9e476b6c28e951dd7691d9c0cf480/node_modules/rxjs/dist/cjs/internal/operators/filter.js.map