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

mrodrig / deeks / 8028319501

24 Feb 2024 04:49AM UTC coverage: 100.0%. Remained the same
8028319501

Pull #33

github

web-flow
Merge b404559ed into f00347b98
Pull Request #33: Add arrayIndexesAsKeys option

46 of 46 branches covered (100.0%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

46 of 46 relevant lines covered (100.0%)

197.8 hits per line

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

100.0
/src/utils.ts
1
'use strict';
2

3
export function unique(array: unknown[]) {
3✔
4
    return [...new Set(array)];
30✔
5
}
6

7
export function flatten(array: unknown[]) {
3✔
8
    return [].concat(...array as ConcatArray<never>[]);
378✔
9
}
10

11
/**
12
 * Returns whether this value is a document to recur on or not
13
 * @param val Any item whose type will be evaluated
14
 * @returns {boolean}
15
 */
16
export function isDocumentToRecurOn(val: unknown) {
3✔
17
    return typeof val === 'object' && val !== null && !Array.isArray(val) && Object.keys(val).length;
585✔
18
}
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

© 2026 Coveralls, Inc