--- title: first --- Returns the first item of an array. ```liquid {% raw %} {% assign my_array = "apples, oranges, peaches, plums" | split: ", " %} {{ my_array.first }} {% endraw %} ``` ```text {% assign my_array = "apples, oranges, peaches, plums" | split: ", " %} {{ my_array.first }} ``` ```liquid {% raw %} {% assign my_array = "zebra, octopus, giraffe, tiger" | split: ", " %} {{ my_array.first }} {% endraw %} ``` ```text {% assign my_array = "zebra, octopus, giraffe, tiger" | split: ", " %} {{ my_array.first }} ```