NodeList

Monster.Types. NodeList

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

<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
new Monster.Types.NodeList()
</script>

Alternatively, you can also integrate this function individually.

<script type="module">
import {NodeList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/types/nodelist.js';
new NodeList()
</script>

Constructor

# new NodeList(values)

A NodeList class

Parameters:
Name Type Description
values NodeList | Node | Array.<Node>
Since:
  • 1.26.0
Throws:

invalid value type

Type
Error

Methods

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

Parameters:
Name Type Description
node Node
Returns:
Type
Monster.Types.NodeList

# clear() → {NodeList}

Returns:
Type
NodeList

# has(node) → {boolean}

Parameters:
Name Type Description
node Node
Returns:
Type
boolean

# remove(node) → {NodeList}

Parameters:
Name Type Description
node Node
Returns:
Type
NodeList

# toArray() → {NodeList}

Returns:
Type
NodeList

# toJSON() → {NodeList}

Returns:
Type
NodeList

# toString() → {NodeList}

Returns:
Type
NodeList