NodeList

A NodeList class

Import
the javascript logo
import { NodeList } from "@schukai/monster/source/types/nodelist.mjs";
Source
the git logo
Package
the npm logo
Since
1.26.0

Exported

NodeList

Derived from

Set

Options

The Options listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Options from these parent classes. If you cannot find a specific Options in this list, we recommend consulting the documentation of the Set.

Option
Type
Default
Description
-/-

Properties

The Properties listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Properties from these parent classes. If you cannot find a specific Properties in this list, we recommend consulting the documentation of the Set.

Methods

The methods listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits methods from these parent classes. If you cannot find a specific method in this list, we recommend consulting the documentation of the Set.

Constructor

constructor(values)
Parameters
  • values: {NodeList|Node|Array}values
Throws
  • {Error} invalid value type

Behavioral methods

add(node)
Parameters
  • node {node}: node
Returns
  • {Monster.Types.NodeList}
clear()
Returns
  • {NodeList}
remove(node)
Parameters
  • node {node}: node
Returns
  • {NodeList}

State query methods

has(node)
Parameters
  • node {node}: node
Returns
  • {boolean}

Static methods

[instanceSymbol]()2.1.0
Returns
  • {symbol}
This method is called by the instanceof operator.

Other methods

length()
Returns
  • {NodeList}
toArray()
Returns
  • {NodeList}
toJSON()
Returns
  • {NodeList}
toString()
Returns
  • {NodeList}

Events

This component does not fire any public events. It may fire events that are inherited from its parent classes.

The current width of the area is too small to display the content correctly.