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

ckapps / rxjs / 4851186617

01 May 2023 12:38PM CUT coverage: 100.0%. Remained the same
4851186617

push

github

christophka
build(deps): bump coverallsapp/github-action from 1.2.4 to 2.*.*

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/map-to-some.operator.ts
1
import { OperatorFunction } from 'rxjs';
2
import { map } from 'rxjs/operators';
1✔
3

4
/**
5
 * @param predicate
6
 * A function that is called for every element in the
7
 * emitted array.
8
 *
9
 * @returns
10
 * An operator that returns `true` if some element
11
 * of the emitted array fulfills the `predicate`.
12
 *
13
 * @example
14
 * const disabled$ = combineLatest([isLoading$, isOffline$])
15
 *  .pipe(
16
 *    mapToSome(value => value === true)
17
 *  );
18
 */
19
export function mapToSome<T>(
1✔
20
  predicate: (value: T, index: number, array: T[]) => boolean,
21
): OperatorFunction<T[], boolean> {
22
  return map(items => items.some(predicate));
4✔
23
}
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