Class ReadonlyLookup<TKey, TVal>
Constructors
Properties
Protected
noKey
noKey: undefined | TVal[] Protected
values
values: Map<NonNullable<TKey>, TVal[]> = ... Accessors
size
- get size(): number
Returns number
Methods
forEach
- forEach(callback): void
Parameters
- callback: ((value: TVal[], key: LookupKey<TKey>) => void)
- (value, key): void
Returns void
Returns void
get
- get(key): undefined | TVal[]
Returns undefined | TVal[]
has
- has(key): boolean
Returns boolean
An immutable collection where each key is unique but has a list of values