joinAllInternals.js 664 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.joinAllInternals = void 0;
  4. var identity_1 = require("../util/identity");
  5. var mapOneOrManyArgs_1 = require("../util/mapOneOrManyArgs");
  6. var pipe_1 = require("../util/pipe");
  7. var mergeMap_1 = require("./mergeMap");
  8. var toArray_1 = require("./toArray");
  9. function joinAllInternals(joinFn, project) {
  10. return pipe_1.pipe(toArray_1.toArray(), mergeMap_1.mergeMap(function (sources) { return joinFn(sources); }), project ? mapOneOrManyArgs_1.mapOneOrManyArgs(project) : identity_1.identity);
  11. }
  12. exports.joinAllInternals = joinAllInternals;
  13. //# sourceMappingURL=joinAllInternals.js.map