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/fc2563ec93d793fc275eef734405a4fdf8b47b20/node_modules/rxjs/dist/esm/internal/operators/toArray.js.map