Equatable Interface
Package: @esfx/equatable
Represents a value that can compare its equality with another value.
Declaration
export interface Equatable
Methods
[Equatable.equals](other)
Determines whether this value is equal to another value.
Declaration
[Equatable.equals](other: unknown): boolean;
Parameters
- other
- unknown
The other value.
Returns
true if this value is equal to other; otherwise, false.
[Equatable.hash]()
Compute a hash code for an value.
Declaration
[Equatable.hash](): number;
Returns
The numeric hash-code for the value.