Interface ArrayLike<T>

A helper interface which covers arguments like NodeListOf or HTMLCollectionOf argument types

interface ArrayLike {
    length: number;
    item(index): T;
    [index: number]: T;
}

Type Parameters

  • T

Indexable

[index: number]: T

Methods

Properties

Methods

  • Parameters

    • index: number

    Returns T

Properties

length: number