Variable FunctionsConst

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

Utilities for comparing and hashing functions.

Type declaration

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

        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 function x is less than the hash code of function y; returns 1 if the hash code of function x is greater than the hash code of function y; and returns 0 if x and y are identical functions. If either x or y is null or undefined, then functions order before null, and null orders before undefined.

      Parameters

      • x: Function
      • y: Function

      Returns number

Generated using TypeDoc