Date(s) comparator.

  • Type Parameters

    • T

    Parameters

    • getter: (input: T) => string | string[]

      Getter of date(s) from input

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

    Comparator function