Prelude API
    Preparing search index...

    Function distance

    • Calculate the distance between two strings using the specified method.

      Parameters

      • a: string

        The first string.

      • b: string

        The second string.

      • method: "levenshtein" = 'levenshtein'

        The distance method to use. Defaults to 'levenshtein'.

      Returns number

      The distance between the two strings.