ReadonlyIndexedCollection<T> Interface

    Package: @esfx/collection-core

    A ReadonlyIndexedCollection<T> describes an indexed collection object, such as an Array, that can contain other values, has a known size, and whose elements can be accessed by ordinal index.

    Declaration
    export interface ReadonlyIndexedCollection<T> extends ReadonlyCollection<T> 
    Inheritance
    ReadonlyCollection<T>
    ReadonlyIndexedCollection<T>
    Inherited Members
    [ReadonlyCollection.size]

    Methods

    [ReadonlyIndexedCollection.getAt](index)

    Gets the value at the specified index in the collection, or undefined if the index was outside of the bounds of the collection.

    Declaration
    [ReadonlyIndexedCollection.getAt](index: number): T | undefined;
    Parameters
    index
    number

    Returns
    T | undefined

    [ReadonlyIndexedCollection.indexOf](value, fromIndex)

    Gets the index for a value in the collection, or -1 if the value was not found.

    Declaration
    [ReadonlyIndexedCollection.indexOf](value: T, fromIndex?: number): number;
    Parameters
    value
    T

    fromIndex
    number

    Returns
    number

    • Improve this Doc
    Generated by DocFX