array = ( ...params ) => {

	let node;

	if ( params.length === 1 ) {

		const values = params[ 0 ];

		node = new ArrayNode( null, values.length, values );

	} else {

		const nodeType = params[ 0 ];
		const count = params[ 1 ];

		node = new ArrayNode( nodeType, count );

	}

	return nodeObject( node );

}
TSL function for creating an array node.

@tsl
@function
@param {string|Array<Node>} nodeTypeOrValues - A string representing the element type (e.g., 'vec3')
or an array containing the default values (e.g., [ vec3() ]).
@param {?number} [count] - Size of the array.
@returns {ArrayNode}