@juulsgaard/ts-tools
    Preparing search index...

    Class Lookup<TKey, TVal>

    A collection where each key is unique but has a list of values

    Type Parameters

    • TKey
    • TVal

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    map: Map<NonNullable<TKey>, TVal[]> = ...
    noKey: TVal[] | undefined

    Accessors

    • get hasNullKey(): boolean

      Return true if the lookup contains a nullish key

      Returns boolean

    • get size(): number

      The number of keys in the lookup

      Returns number

    Methods