UNPKG
closest-match
Version:
latest (1.3.3)
1.3.3
1.3.0
Uses Levenshtein Distance to find the closest string match or matches in an array
closest-match
/
lib
/
methods
/
distance.d.ts
2 lines
(1 loc)
•
65 B
TypeScript
View Raw
1
2
export
declare
const
distance
:
(
a
:
string
,
b
:
string
) =>
number
;