• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ckapps / rxjs / 4584475877

pending completion
4584475877

Pull #210

github

GitHub
Merge cf60a32e9 into 0ed13ae4b
Pull Request #210: chore(deps-dev): bump typescript from 4.9.5 to 5.0.3

17 of 17 branches covered (100.0%)

Branch coverage included in aggregate %.

152 of 152 relevant lines covered (100.0%)

5.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/array/operators/transformation/array-concat.operator.ts
1
import { OperatorFunction } from 'rxjs';
2
import { map } from 'rxjs/operators';
1✔
3

4
/**
5
 * @returns
6
 * An operator that collects streams of arrays and
7
 * emits an concatted array of the sources emission
8
 *
9
 * @example
10
 * combineLatest([of(['a']), of(['b', 'c']), of(['d'])]).pipe(arrayConcat());
11
 * // (a|) -> a: ['a', 'b', 'c', 'd']
12
 */
13
export function arrayConcat<T>(): OperatorFunction<T[][], T[]> {
1✔
14
  return map(values => values.reduce((acc, cur) => [...acc, ...cur], []));
6✔
15
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc