@tsdotnet/compare - v1.5.2
    Preparing search index...

    Function compareInverted

    • Compares two comparable objects or primitives and inverts the sign of the result.

      Type Parameters

      • T

      Parameters

      • a: ComparableObject<T>
      • b: T

      Returns number

    • Compares two comparable objects or primitives and inverts the sign of the result.

      Type Parameters

      • T

      Parameters

      • a: T
      • b: ComparableObject<T>

      Returns number

    • Compares two comparable objects or primitives and inverts the sign of the result.

      Type Parameters

      • T extends Primitive

      Parameters

      Returns CompareResult