node/rxjs/dist/cjs/internal/operators/toArray.js
raw| 1 | "use strict"; |
| 2 | Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 | exports.toArray = void 0; |
| 4 | var reduce_1 = require("./reduce"); |
| 5 | var lift_1 = require("../util/lift"); |
| 6 | var arrReducer = function (arr, value) { return (arr.push(value), arr); }; |
| 7 | function toArray() { |
| 8 | return lift_1.operate(function (source, subscriber) { |
| 9 | reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber); |
| 10 | }); |
| 11 | } |
| 12 | exports.toArray = toArray; |
| 13 | //# sourceMappingURL=toArray.js.map |