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

humanspeak / svelte-headless-table / 12913219917

22 Jan 2025 04:59PM UTC coverage: 59.766%. First build
12913219917

push

github

jaysin586
Rolling it way back

404 of 483 branches covered (83.64%)

Branch coverage included in aggregate %.

2232 of 3955 new or added lines in 55 files covered. (56.43%)

2616 of 4570 relevant lines covered (57.24%)

34.43 hits per line

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

0.0
/docs/src/lib/utils/array.ts
NEW
1
export const getDistinct = <T>(items: T[]): T[] => {
×
NEW
2
  return Array.from(getCounter(items).keys());
×
NEW
3
};
×
NEW
4

×
NEW
5
export const getDuplicates = <T>(items: T[]): T[] => {
×
NEW
6
  return Array.from(getCounter(items).entries())
×
NEW
7
    .filter(([, count]) => count !== 1)
×
NEW
8
    .map(([key]) => key);
×
NEW
9
};
×
NEW
10

×
NEW
11
export const getCounter = <T>(items: T[]): Map<T, number> => {
×
NEW
12
  const result = new Map<T, number>();
×
NEW
13
  items.forEach((item) => {
×
NEW
14
    result.set(item, (result.get(item) ?? 0) + 1);
×
NEW
15
  });
×
NEW
16
  return result;
×
NEW
17
};
×
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