github
13 of 238 branches covered (5.46%)
Branch coverage included in aggregate %.
0 of 472 new or added lines in 41 files covered. (0.0%)
19728 existing lines in 193 files now uncovered.91 of 28170 relevant lines covered (0.32%)
0.02 hits per line
UNCOV
1
|
// luma.gl, MIT license
|
|
UNCOV
2
|
// Copyright (c) vis.gl contributors
|
× |
UNCOV
3
|
|
× |
UNCOV
4
|
/** deeply compare two arrays */
|
× |
UNCOV
5
|
export function deepArrayEqual(x: any, y: any): boolean {
|
× |
UNCOV
6
|
if (x === y) {
|
× |
UNCOV
7
|
return true; |
× |
UNCOV
8
|
} |
× |
UNCOV
9
|
const isArrayX = Array.isArray(x) || ArrayBuffer.isView(x);
|
× |
UNCOV
10
|
const isArrayY = Array.isArray(y) || ArrayBuffer.isView(y);
|
× |
UNCOV
11
|
// @ts-expect-error TODO fix
|
× |
UNCOV
12
|
if (isArrayX && isArrayY && x.length === y.length) {
|
× |
UNCOV
13
|
// @ts-expect-error TODO fix
|
× |
UNCOV
14
|
for (let i = 0; i < x.length; ++i) { |
× |
UNCOV
15
|
if (x[i] !== y[i]) {
|
× |
UNCOV
16
|
return false; |
× |
UNCOV
17
|
} |
× |
UNCOV
18
|
} |
× |
UNCOV
19
|
return true; |
× |
UNCOV
20
|
} |
× |
UNCOV
21
|
return false; |
× |
UNCOV
22
|
} |
× |