List | ARRAY

Syntax

ARRAY( [input] )

Parameters

input
Any data may be used as the input.

Return Value

The result of the input being converted to an array. The return value will always be an empty array set if the input is undefined.

Description

The input will be coerced into an array. The input will be returned unmodified if the input is already an array.

Examples

ARRAY() # returns []
ARRAY([]) # returns []
ARRAY([1, 2, 3])
ARRAY("test") # returns ["test"]
# input = { a: 1, b: 2 }
ARRAY(${input}) # returns [ { a: 1, b: 2 } ]