first - Liquid Filter Reference
On this page
Description
Returns the first item of an list.
| Property | Value |
|---|---|
| Return Type | any |
| Category | lists |
Examples
```liquid
{{ “Mary had a little lamb.” | split: “ “ | first }} ```
Output: Mary
```liquid
{{ an_list | first }} ```
Output: earth
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.