Skip to content

tail

tail(array) → array · Array

Returns everything EXCEPT the first element. Returns an empty array if the input has 0 or 1 elements.

  • array (required): the source array
utlx
tail(["Apple", "Banana", "Cherry"])      // ["Banana", "Cherry"]
tail(["Apple"])                          // []
tail([])                                 // []

// Use case: skip the header row in a headerless CSV
let dataRows = tail($input)             // all rows except the first
{ rows: dataRows }

Released under AGPL-3.0.