Type alias ArrayMonotonicOptions<T>

ArrayMonotonicOptions<T>: {
    monotonicity: Monotonicity;
    projection: ((item) => number);
} | {
    comparator: ((a, b) => number);
    monotonicity: Monotonicity;
} | {
    monotonicity: Monotonicity;
}

Type Parameters

  • T

    The type of the array elements.

Type declaration

  • monotonicity: Monotonicity
  • projection: ((item) => number)
      • (item): number
      • Parameters

        • item: T

        Returns number

Type declaration

  • comparator: ((a, b) => number)
      • (a, b): number
      • Parameters

        Returns number

  • monotonicity: Monotonicity

Type declaration