StructuralEquatable Interface
Package: @esfx/equatable
Represents a value that can compare its structural equality with another value.
Declaration
export interface StructuralEquatable
Methods
[StructuralEquatable.structuralEquals](other, equaler)
Determines whether this value is structurally equal to another value using the supplied Equaler
.
Declaration
[StructuralEquatable.structuralEquals](other: unknown, equaler: Equaler<unknown>): boolean;
Parameters
- other
- unknown
The other value.
Returns
true
if this value is structurally equal to other
; otherwise, false
.
[StructuralEquatable.structuralHash](equaler)
Compute a structural hash code for a value using the supplied Equaler
.
Declaration
[StructuralEquatable.structuralHash](equaler: Equaler<unknown>): number;
Parameters
Returns
The numeric hash-code of the structure.