Compute the levenshtein edit distance between two strings. Equivalent to the the number of edits necessary to get from source to target.
the number of changes to edit source into target
editDistance('snail', 'mail') === 2
string to use as source
target string
Optional
Generated using TypeDoc
Compute the levenshtein edit distance between two strings. Equivalent to the the number of edits necessary to get from source to target.
Returns
the number of changes to edit source into target
Example