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

mrodrig / deeks / 9916467292

13 Jul 2024 02:05AM UTC coverage: 100.0%. Remained the same
9916467292

Pull #34

github

mrodrig
chore(rel): 3.1.1
Pull Request #34: July24 audit fix

46 of 46 branches covered (100.0%)

Branch coverage included in aggregate %.

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