The type of the nodes held in the list.
The type of the nodes held in the list.
Optionalvalue: NodeListType<Type>The initial value to populate the list with.
Functionadd
The entries to add.
Itself, allowing for method chaining.
Adds one or more entries to the list. Entries may be individual nodes, arrays, sets, HTMLCollections, NodeListOf instances, or nested TurboNodeLists.
Functionremove
The entries to remove.
Itself, allowing for method chaining.
Removes one or more entries from the list. Entries may be individual nodes, arrays, sets, HTMLCollections, NodeListOf instances, or nested TurboNodeLists.
Functionhas
The entry (or entries) to check.
Whether the entry (or entries) is present in the list.
ProtectedaddProtectedremove
TurboNodeList
Description
A composable, Set-like collection for managing nodes. Supports individual nodes, live DOM collections (HTMLCollection or NodeListOf), and nested TurboNodeList instances as sub-lists. Changes to sub-lists and live DOM collections propagate automatically on iteration.