Skip to content

Commit 1eec68a

Browse files
committed
Merge branch 'master' of https://github.com/OlexG/diff
2 parents 42bfefd + e8ca66f commit 1eec68a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ diffCharacters("ABCBDAB", "BDCABA")
1212
## API
1313

1414
*diffCharacters(oldString: string, newString: string)*
15+
1516
Compares two strings by character and returns a list `IDiffCharacter` objects (explained below)
1617

1718
*longestCommonSubsequence(a: string, b: string)*
19+
1820
Compares two strings by character and returns the [longest common subsequence](https://en.wikipedia.org/wiki/Longest_common_subsequence_problem)
1921

2022
## Types
@@ -44,4 +46,5 @@ for (const character of diffCharacters("boopa", "boop beep boppy")) {
4446
console.log(finalString);
4547
}
4648
```
49+
![image](https://user-images.githubusercontent.com/36348190/167757003-aef6e4c7-6c83-444e-ba04-7bb6c6681133.png)
4750

0 commit comments

Comments
 (0)