mirror of
https://github.com/google-map-react/google-map-react.git
synced 2026-01-25 15:08:05 +00:00
13 lines
265 B
JavaScript
13 lines
265 B
JavaScript
|
|
export default function isArraysEqualEps(arrayA, arrayB, eps) {
|
|
if (arrayA && arrayB) {
|
|
for (let i = 0; i !== arrayA.length; ++i) {
|
|
if (Math.abs(arrayA[i] - arrayB[i]) > eps) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|