DOMStringList

The DOMStringList interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (DOMString).

MDN Reference

Properties

Link copied to clipboard
open override val length: Int

The read-only length property indicates the number of strings in the DOMStringList.

Functions

Link copied to clipboard
fun contains(string: String): Boolean

The contains() method returns a boolean indicating whether the given string is in the list.

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

The item() method returns a string from a DOMStringList by index.

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