aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm/internal/operators/toArray.js
blob: 01b9a1f33b166e753662ed7406bfc32aab2b12c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
import { reduce } from './reduce';
import { operate } from '../util/lift';
const arrReducer = (arr, value) => (arr.push(value), arr);
export function toArray() {
    return operate((source, subscriber) => {
        reduce(arrReducer, [])(source).subscribe(subscriber);
    });
}
//# sourceMappingURL=toArray.js.map
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage