Function levenshteinDistance

  • Get Levenshtein distance between strings.

    Parameters

    • x: string

      a string

    • y: string

      another string

    • ins: number = 1

      insertion cost [1]

    • del: number = 1

      deletion cost [1]

    • sub: number = 1

      substitution cost [1]

    Returns number

    levenshtein distance

Generated using TypeDoc