HTMLCollectionBase

sealed external interface HTMLCollectionBase<T : Element> : ArrayLike<T> , JsIterable<T> (source)

A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.

MDN Reference

Inheritors

Properties

Link copied to clipboard
abstract val length: Int

Functions

Link copied to clipboard
open operator fun get(index: Int): T
open operator fun get(key: Symbol.iterator): () -> JsIterator<T>
Link copied to clipboard
abstract fun item(index: Int): T?

Retrieves an object from various collections.

Link copied to clipboard
open inline operator fun iterator(): Iterator<T>