Skip to main content

last

Returns the last item of an array.

Basic Usage

The last product is: {{ collection.products | last }}
The last product is select title: {{ collection.products | last("title") }}