Number(s) comparator.

  • Type Parameters

    • T

    Parameters

    • closure: (input: T) => number | number[]

      Getter of number(s) from input

    Returns (x: T, y: T) => number

    Comparator function