FLATTEN

Turn nested arrays into a single 1 dimensional array

Syntax 

FLATTEN(array)

Examples 

Example 1

Input

{
  "my_action": [
    [
      "dog",
      "cat",
      "turtle"
    ],
    [
      "deer",
      "bear",
      "tiger"
    ]
  ]
}

Formula

FLATTEN(my_action)

Output

[
  "dog",
  "cat",
  "turtle",
  "deer",
  "bear",
  "tiger"
]
Was this helpful?