UNPKG

closest-match

Version:

Uses Levenshtein Distance to find the closest string match or matches in an array

2 lines (1 loc) 125 B
export declare const closestMatch: (target: string, array: string[], showOccurrences?: boolean) => string | string[] | null;