Function compareStringWithMode

  • Compares the inputString to the value string using the specified mode.

    Parameters

    • inputString: string

      The input string to compare.

    • value: string

      The value to compare against.

    • mode: EnumValue<StringCompareMode, number>

      The mode to use for the comparison.

    Returns number

    Returns a number indicating the result of the comparison, 0 if the strings are equal, -1 if the inputString is less than the value, and 1 if the inputString is greater than the value.