@visulima/string
Version:
Functions for manipulating strings.
9 lines (7 loc) • 321 B
text/typescript
interface ClosestStringOptions {
caseSensitive?: boolean;
compareFn?: (a: string, b: string) => number;
}
declare const closestString: (givenWord: string, possibleWords: ReadonlyArray<string>, options?: ClosestStringOptions) => string | undefined;
export { closestString };
export type { ClosestStringOptions };