ClosestStringOptions
import { ClosestStringOptions } from "jsr:@ende/text";interface
interface ClosestStringOptionsOptions for closestString.
Properties
caseSensitive
caseSensitive?: booleanWhether the distance should include case.
Default: false
compareFn
compareFn?: (a: string, b: string) => numberA custom comparison function to use for comparing strings.
Default: levenshteinDistance
Returns
The distance between the two strings.