Debian Codegraph @

node/rxjs/dist/esm/internal/operators/toArray.js

raw
1 import { reduce } from './reduce';
2 import { operate } from '../util/lift';
3 const arrReducer = (arr, value) => (arr.push(value), arr);
4 export function toArray() {
5 return operate((source, subscriber) => {
6 reduce(arrReducer, [])(source).subscribe(subscriber);
7 });
8 }
9 //# sourceMappingURL=toArray.js.map