Interface ArrayLike<T>

Represents an array-like structure with a length property and indexed access. Useful for working with objects that have array-like behavior.

interface ArrayLike<T> {
    length: number;
    [index: number]: T;
}

Type Parameters

  • T

    The type of elements in the array-like structure.

Indexable

  • [index: number]: T

Properties

Properties

length: number