Each Item in List as List | ARRAY_EACH

Syntax

ARRAY_EACH( [value] )

Parameters

value
A value to force to be an ARRAY.

Return Value

VALUE as an ARRAY.

Description

Forces a value to be an array. This works similarly to how the ARRAY method works except that in how it handles NULL and UNDEFINED values.

Examples

ARRAY_EACH([1, 2, 3]) # returns [1, 2, 3]
ARRAY_EACH(4) # returns [4]
ARRAY_EACH(null) # returns [NULL]
ARRAY_EACH(undefined) # returns [UNDEFINED]