Make it compatible with arrays by replacing s.charAt(i) with s[i]
Closed this issue · 3 comments
caub commented
I'll try and see
also substring -> slice
caub commented
I'm investigating with other libs for now: fast-array-diff and fast-myers-diff which are compatible with both strings and arrays
DennisTheMenace780 commented
@caub Do you happen to recall why this was failing for you? We might've ran into a similar problem but we don't have enough information here.
caub commented
@DennisTheMenace780 fastDiff(['a', 'b'], ['a', 'c'])
used to fail