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