Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return -1;
}
let shouldNegateResult = false;
if (i1 === i2) {
return 0;
} else if (i1 > i2) {
const tmp = i1;
i1 = i2;
i2 = tmp;
shouldNegateResult = true;
}
let res = 0;
if (hasElementsInInterval(this.changePoints, (x) => x, i1, i2)) {
res = -1;
}
if (shouldNegateResult) {
res *= -1;
}
return res;
}
}