UNPKG

leven

Version:

Measure the difference between two strings using the Levenshtein distance algorithm

13 lines (10 loc) 195 B
/** Measure the difference between two strings. @example ``` import leven from 'leven'; leven('cat', 'cow'); //=> 2 ``` */ export default function leven(first: string, second: string): number;