import { reduce } from './reduce.js';
import { Observable } from '../Observable.js';
const arrReducer = (arr, value) => (arr.push(value), arr);
export function toArray() {
    return (source) => new Observable((subscriber) => {
        reduce(arrReducer, [])(source).subscribe(subscriber);
    });
}//# sourceMappingURL=http://go/sourcemap/sourcemaps/31e8d61c448c7472e371505838a0fe34083dad50/node_modules/rxjs/dist/esm/internal/operators/toArray.js.map