iter-fns - v0.13.0
    Preparing search index...

    Interface Compare<T>

    A comparator.

    It should return a positive number if x > y, a negative number if x < y, or 0 otherwise.

    The default implementation is compare.

    Type Parameters

    • T

      type of the item

    • Parameters

      • x: T

        left element

      • y: T

        right element

      Returns number