ReadonlyKeyedCollection<K, V> Interface
Package: @esfx/collection-core
A ReadonlyKeyedCollection<K, V> describes a keyed collection object, such as a Map, that can contain other values, has a known size, and whose elements can be accessed by key.
Declaration
export interface ReadonlyKeyedCollection<K, V> extends ReadonlyKeyedContainer<K, V>, Iterable<[K, V]>
Properties
[ReadonlyKeyedCollection.size]
Gets the number of elements in the collection.
Declaration
readonly [ReadonlyKeyedCollection.size]: number;
Property Value
Methods
[ReadonlyKeyedCollection.keys]()
Gets an IterableIterator
for the keys present in the collection.
Declaration
[ReadonlyKeyedCollection.keys](): IterableIterator<K>;
Returns
IterableIterator<K>
[ReadonlyKeyedCollection.values]()
Gets an IterableIterator
for the values present in the collection.
Declaration
[ReadonlyKeyedCollection.values](): IterableIterator<V>;
Returns
IterableIterator<V>