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

jumpinjackie / mapguide-react-layout / 15160233749

21 May 2025 10:49AM UTC coverage: 21.004% (-43.2%) from 64.24%
15160233749

Pull #1552

github

web-flow
Merge 0ac1bfa35 into 236e2ea07
Pull Request #1552: Feature/package updates 2505

840 of 1175 branches covered (71.49%)

11 of 488 new or added lines in 30 files covered. (2.25%)

1332 existing lines in 50 files now uncovered.

4794 of 22824 relevant lines covered (21.0%)

6.69 hits per line

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

92.86
/src/utils/array.ts
1

2
/**
3
 * Returns a unique array of strings from the given array
4
 * @param items The array of strings to make unique
5
 * @since 0.13
6
 */
7
export function makeUnique(arr: string[]): string[] {
1✔
8
    const a = [];
8✔
9
    for (let i = 0, l = arr.length; i < l; i++) {
8✔
10
        if (a.indexOf(arr[i]) === -1 && arr[i] !== '')
15✔
11
            a.push(arr[i]);
15✔
12
    }
15✔
13
    return a;
8✔
14
}
8✔
15

16
/**
17
 * Indicates if the given arrays are different (content-wise)
18
 * @param arr 
19
 * @param other 
20
 * @since 0.13
21
 */
22
export function areArraysDifferent<T>(arr: T[] | undefined, other: T[] | undefined, equalityFn?: (left: T, right: T) => boolean): boolean {
1✔
23
    if (arr && other) {
14✔
24
        if (arr.length != other.length) {
13✔
25
            return true;
3✔
26
        } else {
13✔
27
            for (let i = 0; i < arr.length; i++) {
10✔
28
                if (equalityFn) {
13✔
29
                    if (!equalityFn(arr[i], other[i])) {
3!
30
                        return true;
×
UNCOV
31
                    }
×
32
                } else if (arr[i] !== other[i]) {
13✔
33
                    return true;
3✔
34
                }
3✔
35
            }
13✔
36
            return false;
7✔
37
        }
7✔
38
    } else {
14✔
39
        return true;
1✔
40
    }
1✔
41
}
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

© 2026 Coveralls, Inc