Interface DOMStringList

A type returned by some APIs which contains a list of DOMString (strings).

MDN Reference

interface DOMStringList {
    length: number;
    contains(string): boolean;
    item(index): string;
    [index: number]: string;
}

Indexable

[index: number]: string

Properties

Methods

Properties

length: number

Returns the number of strings in strings.

MDN Reference

Methods

  • Returns true if strings contains string, and false otherwise.

    MDN Reference

    Parameters

    • string: string

    Returns boolean

  • Returns the string with index index from strings.

    MDN Reference

    Parameters

    • index: number

    Returns string