Type Alias Comparator<TData>

Comparator: (a: TData, b: TData) => number

The type of function used to make heap's nodes comparisons.

Type Parameters

  • TData

    The heap's nodes type.

Type declaration

    • (a: TData, b: TData): number
    • Parameters

      • a: TData

        A node of the heap.

      • b: TData

        Another node of the heap.

      Returns number