Skip to content
Functionutilsv0.8.17

prettyDifference

Calculates the difference between two numbers and formats it as a string with a '+' prefix for positive differences.

prettyDifference(
    numBefore: number,
    numAfter: number
): string