Monster.Types. NodeList

You can create the instance via the monster namespace new Monster.Types.NodeList().

Constructor

new NodeList(values)

A NodeList class

Parameters:
NameTypeDescription
valuesNodeList | Node | Array.<Node>
Since
  • 1.26.0
License
  • AGPLv3
Throws:

invalid value type

Type
Error

Members

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Since
  • 2.1.0

Methods

add(node) → {Monster.Types.NodeList}

Parameters:
NameTypeDescription
nodeNode
Returns:
Type: 
Monster.Types.NodeList

clear() → {NodeList}

Returns:
Type: 
NodeList

has(node) → {boolean}

Parameters:
NameTypeDescription
nodeNode
Returns:
Type: 
boolean

remove(node) → {NodeList}

Parameters:
NameTypeDescription
nodeNode
Returns:
Type: 
NodeList

toArray() → {NodeList}

Returns:
Type: 
NodeList

toJSON() → {NodeList}

Returns:
Type: 
NodeList

toString() → {NodeList}

Returns:
Type: 
NodeList