@geraintguan/ts-std-lib
    Preparing search index...

    Interface HashMapOptions<TKey, THashedKey>

    Options for creating a new map instance.

    interface HashMapOptions<TKey, THashedKey = TKey> {
        hash: (key: TKey) => THashedKey;
        name?: string;
    }

    Type Parameters

    • TKey
    • THashedKey = TKey

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    hash: (key: TKey) => THashedKey

    Function called to hash a key before storing or using it to access a value in the map.

    name?: string

    Optional human readable name for the map instance that is used for debugging purposes.

    Defaults to "unknown" if not set.