Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsonCompareFn<T>

compiled compare function.

Type parameters

  • T

Hierarchy

  • JsonCompareFn

Hierarchy-Diagram

Callable

  • __call(o1: T, o2: T): number
  • compares objects in a way compatible to Array.sort().

    Parameters

    • o1: T

      left operand.

    • o2: T

      right operand.

    Returns number

    indicating relative ordering of operands.

Generated using TypeDoc