JezK
Edit File: joinAllInternals.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.joinAllInternals = void 0; var identity_1 = require("../util/identity"); var mapOneOrManyArgs_1 = require("../util/mapOneOrManyArgs"); var pipe_1 = require("../util/pipe"); var mergeMap_1 = require("./mergeMap"); var toArray_1 = require("./toArray"); function joinAllInternals(joinFn, project) { return (0, pipe_1.pipe)((0, toArray_1.toArray)(), (0, mergeMap_1.mergeMap)(function (sources) { return joinFn(sources); }), project ? (0, mapOneOrManyArgs_1.mapOneOrManyArgs)(project) : identity_1.identity); } exports.joinAllInternals = joinAllInternals; //# sourceMappingURL=joinAllInternals.js.map