@metreeca/core - v0.13.0
    Preparing search index...

    Function reverse

    • Reverses the order of a comparator.

      The reversal applies to every value, so null and undefined values placed first by comparator are placed last, and the reverse. Wrapping the reversed comparator in absent or present keeps them at a fixed end.

      Type Parameters

      • V

        The type of values to compare

      Parameters

      Returns Comparator<V>

      A comparator producing the opposite ordering