Function COMPARE

  • Compare two async values.

    Type Parameters

    • T

    Parameters

    • a: T | Promise<T>

      an async value

    • b: T | Promise<T>

      another async value

    Returns Promise<number>

    a<b: -1, a=b: 0, a>b: 1

Generated using TypeDoc