Liquid Filter Reference for first - v0.9.5
| Filter Name | first |
| Group | Arrays |
| Version | 0.9.5 |
Description
Returns the first item of an array.
Examples
{{ "Mary had a little lamb." | split: " " | first }}
Mary
{% assign an_array = "earth, water, air, fire" | split: ", " %}
{{ an_array | first }}
earth
Back to Liquid Reference for 0.9.5
Back to Documentation