h1z1-server
    Preparing search index...

    Function getDifference

    • Calculates the difference between two strings using the Levenshtein distance algorithm.

      Parameters

      • s1: string

        The first string to compare.

      • s2: string

        The second string to compare.

      Returns number

      The difference between the two strings as a number.