Skip to content

Returns the length of an array. Array length lives in the Array category of the fx menu.

ParameterTypeRequiredDefaultDescription
Inputstringyes—Value to transform. Previous step output or a literal.

Input is the primary value (previous step output or a literal).

TypeDescription
numberResult of the Array length transformation.
  • Array arguments must be valid JSON arrays. Invalid JSON or non-array values raise an error.
Get an array length

Return how many elements are in a JSON array.

  1. Set Input to a JSON array. Paste:

    Input
    ["a","b","c"]
  2. Confirm Output value is 3.