PokéRogue
    Preparing search index...

    Function compareVersions

    • Compares two versions and returns whether one is newer than the other.

      Parameters

      • versionA: string

        The first version to compare

      • versionB: string

        The second version to compare

      Returns -1 | 0 | 1

      The result of the comparison:

      • 1: versionA is newer
      • -1: versionB is newer
      • 0: The versions are equal