vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function primitiveCompare

    • Compares two values (a and b) and returns 0 when they are equal, > 0 when a is bigger then b or < 0 when a is smaller then b. Supports native comparison for types string, boolean and number. When a parameter a and b are not the same type they both are converted to string before being compared.

      Parameters

      • a: unknown

        value a

      • b: unknown

        value b

      Returns number

      0 when they are equal, > 0 when a is bigger then b or < 0 when a is smaller then b