Variable ConstructorsConst

Constructors: {
    hash: ((x) => number);
    compare(x, y) => number;
}

Utilities for comparing and hashing constructors.

Type declaration

  • hash: ((x) => number)
      • (x): number
      • Returns a 32-bit hash value for a constructor.

        Parameters

        • x: Function | null | undefined

        Returns number

  • compare:function
    • Returns the relative order of x with respect to y. Returns -1 if the hash code of constructor x is less than the hash code of constructor y; returns 1 if the hash code of constructor x is greater than the hash code of constructor y; and returns 0 if x and y are identical constructors. If either x or y is null or undefined, then constructors order before null, and null orders before undefined.

      Parameters

      • x: Function
      • y: Function

      Returns number

Generated using TypeDoc