utils/algos library
Functions
-
editDistance(
String a, String b) → int - Calculates the number of edits needed to match both strings. Edits include insertions, deletions, substitutions, and transpositions. Extension of Levenshtein Distance. Returns the number of edits for a == b.