For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages
are available by appending .md to any URL.
Interface DOMStringList
interface DOMStringList {
length: number;
"[iterator]"(): ArrayIterator<string>;
contains(string: string): boolean;
item(index: number): string | null;
[index: number]: string;
}
length: number;
"[iterator]"(): ArrayIterator<string>;
contains(string: string): boolean;
item(index: number): string | null;
[index: number]: string;
}
Indexable
-
[index: number]: string
Properties
Readonlylength
length: number
The read-only length property indicates the number of strings in the DOMStringList.
Methods
[iterator]
-
Returns ArrayIterator<string>
contains
-
The
contains()method returns a boolean indicating whether the given string is in the list.Parameters
- string: string
Returns boolean
item
-
The
item()method returns a string from a DOMStringList by index.Parameters
- index: number
Returns string | null
The
DOMStringListinterface is a legacy type returned by some APIs and represents a non-modifiable list of strings (DOMString).MDN Reference