TypeScript · Interface
ArrayLike
ArrayLike<T> is an interface for values with a numeric length and numeric element access. It models array-shaped data without requiring the value to be an actual Array.
Last updated
Syntax
interface ArrayLike<T> {
readonly length: number;
readonly [n: number]: T;
}In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
interfacetype aliasobject typesstructural typingoptional propertiesreadonly properties