"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.finalize = void 0;
const Observable_js_1 = require("../Observable.js");
function finalize(callback) {
    return (source) => new Observable_js_1.Observable((subscriber) => {
        source.subscribe(subscriber);
        subscriber.add(callback);
    });
}
exports.finalize = finalize;//# sourceMappingURL=http://go/sourcemap/sourcemaps/cd1c87ff9b66021918fb9731605f8d1d5fd2f0b0/node_modules/rxjs/dist/cjs/internal/operators/finalize.js.map