Values: {
compare(x, y) => number;
equal(x, y) => boolean;
equivalent(x, y, epsilon?) => boolean;
hash(x) => number;
}
Type declaration
-
compare:function
- compare(x, y): number
-
Returns number
-
equal:function
- equal(x, y): boolean
-
Returns boolean
-
equivalent:function
- equivalent(x, y, epsilon?): boolean
-
Parameters
-
x: unknown
-
y: unknown
-
Optional
epsilon: number
Returns boolean
-
hash:function
- hash(x): number
-
Returns number
Utilities for comparing and hashing structural values. A structural value is typed by object structure, rather than by name.