joinAllInternals.js 433 B

123456789
  1. import { identity } from '../util/identity';
  2. import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';
  3. import { pipe } from '../util/pipe';
  4. import { mergeMap } from './mergeMap';
  5. import { toArray } from './toArray';
  6. export function joinAllInternals(joinFn, project) {
  7. return pipe(toArray(), mergeMap((sources) => joinFn(sources)), project ? mapOneOrManyArgs(project) : identity);
  8. }
  9. //# sourceMappingURL=joinAllInternals.js.map