@zero-dependency/utilsFunctionsgetDifferencegetDifference CallablegetDifference(leftStr: string, rightStr: string): DifferenceResult[]Compare two strings and return an array of differences.@exampleconst diff = getDifference('hello', 'hillo')console.log(diff) // [{ index: 1, old: 'e', new: 'i' }]ParametersleftStr: stringrightStr: stringReturns DifferenceResult[]
Compare two strings and return an array of differences.