Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function convertAbsoluteLength(left, right, precision) {
if (right.type === left.type) {
right = {
type: left.type,
value: convertUnits(right.value, right.unit, left.unit, precision),
unit: left.unit
}
}
return { left, right }
}