(diffs: Array<Diff>, op: number, hasCommonDiff: boolean)
| 436 | } |
| 437 | |
| 438 | function getCommonAndChangedSubstrings(diffs: Array<Diff>, op: number, hasCommonDiff: boolean): string { |
| 439 | return diffs.reduce( |
| 440 | (reduced: string, diff: Diff): string => |
| 441 | reduced |
| 442 | + (diff[0] === DIFF_EQUAL |
| 443 | ? diff[1] |
| 444 | : diff[0] === op |
| 445 | ? hasCommonDiff |
| 446 | ? c.inverse(diff[1]) |
| 447 | : diff[1] |
| 448 | : ''), |
| 449 | '', |
| 450 | ) |
| 451 | } |
no outgoing calls
no test coverage detected