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]> 
    Inheritance
    ReadonlyKeyedContainer<K, V>
    Iterable<[K, V]>
    ReadonlyKeyedCollection<K, V>
    Inherited Members
    [ReadonlyKeyedContainer.get](key)
    [ReadonlyKeyedContainer.has](key)

    Properties

    [ReadonlyKeyedCollection.size]

    Gets the number of elements in the collection.

    Declaration
    readonly [ReadonlyKeyedCollection.size]: number;
    Property Value
    number

    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>

    • Improve this Doc
    Generated by DocFX