📄 threejs/Core/Nodes/ArrayElementNode

File: ArrayElementNode.md | Updated: 11/15/2025


title: ArrayElementNode category: Core layout: docs

ArrayElementNode

Base class for representing element access on an array-like node data structures.

Constructor

new ArrayElementNode( node : Node, indexNode : Node )

Constructs an array element node.

node | The array-like node.
---|---
indexNode | The index node that defines the element access.

Properties

.indexNode : Node

The index node that defines the element access.

.isArrayElementNode : boolean (readonly)

This flag can be used for type testing.

Default is true.

.node : Node

The array-like node.

Methods

.getNodeType( builder : NodeBuilder ) : string

This method is overwritten since the node type is inferred from the array-like node.

builder | The current node builder.
---|---

Overrides: Node#getNodeType

Returns: The node type.

Source

src/nodes/utils/ArrayElementNode.js