Finds the longest common subsequence of two strings, and the diff between them.
npm install @lachenmayer/longest-common-subsequenceFinds the longest common subsequence of two strings, and the diff between them.
``typescript
function lcs(a: string, b: string): { lcs: string, diff: Array
type Diff =
| ['keepOld', number] // index in a
| ['addNew', number] // index in b
| ['removeOld', number] // index in a
``