Documentation
    Preparing search index...

    Interface HashableEqualityComparer<T>

    Provides methods to compare the equality of two objects, along with a function to hash the objects for hash map implementation.

    Due to the limitation of current JavaScript API, there is no efficient approach to evaluate hash code for every primitive types (e.g. string). This can cause significant performance penalty.

    interface HashableEqualityComparer<T = any> {
        equals(x: T, y: T): boolean;
        getHashCode(value: T): number;
        isSupported(value: unknown): value is T;
    }

    Type Parameters

    • T = any

    Hierarchy (View Summary)

    Implemented by

    Index