Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function normalizeNewCaretPos(caretPosition, sequenceLength, circular) {
if (circular) {
return normalizePositionByRangeLength(caretPosition, sequenceLength, true);
} else {
return trimNumberToFitWithin0ToAnotherNumber(caretPosition, sequenceLength);
}
}
function normalizeNewCaretPos(caretPosition, sequenceLength, circular) {
if (circular) {
return normalizePositionByRangeLength(caretPosition, sequenceLength, true);
} else {
return trimNumberToFitWithin0ToAnotherNumber(caretPosition, sequenceLength);
}
}