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

4
/**
5
 * Maps the elements of the array to only those elements that pass
6
 * the given `predicate`.
7
 *
8
 * @param predicate Predicate function
9
 */
10
export function mapFilter<T>(
3✔
11
  predicate: (value: T, index: number, array: T[]) => boolean,
12
): OperatorFunction<T[], T[]> {
13
  return map(items => items.filter(predicate));
3✔
14
}
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