Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/OlexG/diff
Browse files Browse the repository at this point in the history
  • Loading branch information
OlexG committed May 11, 2022
2 parents 42bfefd + e8ca66f commit 1eec68a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ diffCharacters("ABCBDAB", "BDCABA")
## API

*diffCharacters(oldString: string, newString: string)*

Compares two strings by character and returns a list `IDiffCharacter` objects (explained below)

*longestCommonSubsequence(a: string, b: string)*

Compares two strings by character and returns the [longest common subsequence](https://en.wikipedia.org/wiki/Longest_common_subsequence_problem)

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

0 comments on commit 1eec68a

Please sign in to comment.