All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jsMain.web.dom.NodeList.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package web.dom

import js.core.ArrayLike
import js.core.JsIterable

sealed external class NodeList :
    ArrayLike,
    JsIterable {
    /** Returns the node with index index from the collection. The nodes are sorted in tree order. */
    fun item(index: Int): T?

    /**
     * Performs the specified action for each node in an list.
     * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
     * @param thisArg  An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
     */
    fun forEach(action: (item: T) -> Unit)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy